Next: omp_get_max_active_levels, Previous: omp_get_dynamic, Up: Runtime Library Routines [Contents][Index]

### 2.6 `omp_get_level` – Obtain the current nesting level

Description:

  This function returns the nesting level for the parallel blocks, which enclose the calling call.

C/C++

  Prototype: | `int omp_get_level(void);`

Fortran:

  Interface: | `integer function omp_level()`

See also:

  omp_get_active_level

Reference:

  OpenMP specification v4.0, Section 3.2.17.