cdds_initopenmp - initialize the DDS system for OpenMP parallelization
SYNOPSIS
#include "cdds.h"
int cdds_initopenmp();
DESCRIPTION
This function 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 return 1.
NOTE:
you will have to define this function for
yourself because it is not defined in cdds.h (because it would try to use the
parallel routines for all codes). So add "int cdds_initopenmp" to any
routine that uses it.
SEE ALSO
cdds_initmpi Initialize DDS for MPI
cdds_initmpix Initialize DDS for MPIX
AUTHOR
Jerry Ehlers, BP America (Feb 2006)