The omp_get_active_level routine returns the number of nested, active parallel regions enclosing the task that contains the call.
INTEGER FUNCTION OMP_GET_ACTIVE_LEVEL()
Notes & Restrictions:
The routine always returns a nonnegative integer, and returns 0 if it is called from the sequential part of the program.
Lawrence Livermore National Laboratory
7000 East Avenue • Livermore, CA 94550 | LLNL-WEB-458451
Operated by the Lawrence Livermore National Security, LLC for the
Department of Energy's National Nuclear Security Administration
Learn about the Department of Energy's Vulnerability Disclosure Program