wrf.omp_in_parallel¶
- wrf.omp_in_parallel()¶
Return 1 if the active-levels-var ICV is greater than zero; otherwise, return 0.
The effect of the omp_in_parallel routine is to return 1 if the current task is enclosed by an active parallel region, and the parallel region is enclosed by the outermost initial task region on the device; otherwise it returns 0.
Note
This function always returns 0 when called from within Python.
- Returns:
Returns 1 if the active-levels-var ICV is greater than zero. Otherwise, it returns 0.
- Return type: