wrf.omp_set_dynamic

wrf.omp_set_dynamic(dynamic_threads)

Enable or disable dynamic adjustment of the number of threads available for the execution of subsequent parallel regions by setting the value of the dyn-var ICV.

For implementations that support dynamic adjustment of the number of threads, if the argument to omp_set_dynamic evaluates to True, dynamic adjustment is enabled for the current task; otherwise, dynamic adjustment is disabled for the current task. For implementations that do not support dynamic adjustment of the number of threads this routine has no effect: the value of dyn-var remains false.

Parameters:

dynamic_threads (bool) – Set to True to support the dynamic adjustment of the number of threads. Otherwise, set to False.

Returns:

None.