fdds_initopenmp - initialize the DDS system for OpenMP parallelization


SYNOPSIS

integer fdds_initopenmp( )

DESCRIPTION

fdds_initopenmp is used to initialize the DDS system for OpenMP parallelization. If OpenMP is available it scans the command line for "nproc" and calls "omp_set_num_threads" to set the number or processors to use. The default value for "nproc" is 1. The return value is "nproc". If OpenMP is not available it simply returns 1.

NOTE: fdds_openmp is not defined in fdds.h. Developers need to add the declaration

   integer fdds_initopenmp

to any routine that uses it.

WARNING

DDS is NOT thread safe. You should take care to avoid using the DDS API within parallel regions.

SEE ALSO

fdds_initmpi Initialize DDS for MPI
Summary of OpenMP 4.0 for Fortran
    

AUTHOR

Jerry Ehlers, BP America (Feb 2006)