This routine returns the maximum number of nested active parallel regions.
INTEGER FUNCTION OMP_GET_MAX_ACTIVE_LEVELS()
#include <omp.h> int omp_get_max_active_levels(void)