Definition
The function omp_get_dynamic indicates whether dynamic adjustement is enabled. Dynamic adjustment is the feature that allows the runtime system to provide fewer threads than requested for a parallel region. In codes with recursively nested parallel regions for instance, the total number of threads to spawn may generate a high oversubscription, dynamic adjustement allows the runtime system to handle that growth. It can be enabled or disabled using the function omp_set_dynamic.
int omp_get_dynamic();