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: you will have to define this function for yourself because it is not defined in fdds.h (if it was, DDS would try to use the parallel routines for all codes). So add "integer fdds_initopenmp" to any routine that uses it.

Example

	! Declare the function and local value for nproc
        integer fdds_initopenmp, nproc
	...
	
	! Initialize OpenMP, copy command line value of nproc to local nproc
        nproc = fdds_initopenmp()
      

SEE ALSO

       fdds_initmpi Initialize DDS for MPI
       fdds_initmpix Initialize DDS for MPIX
    

AUTHOR

Jerry Ehlers, BP America (Feb 2006)