# NAG C Library Function Document

## 1Purpose

nag_omp_get_nested (x06ahc) returns $1$ if nested OpenMP parallelism has been enabled, and $0$ otherwise.

## 2Specification

 #include #include
 Integer nag_omp_get_nested ()

## 3Description

nag_omp_get_nested (x06ahc), for multi-threaded implementations, tests whether the nesting of OpenMP parallel regions has been enabled as if with a call to nag_omp_set_nested (x06agc). The return value will be $1$ if nesting is enabled or $0$ if it is disabled.
In serial implementations of the NAG C Library nag_omp_get_nested (x06ahc) will always return $0$. See the x06 Chapter Introduction for a discussion of the behaviour of these functions when called in serial.

## 4References

OpenMP Specifications
Chapman B, Jost G and van der Pas R (2008) Using OpenMP Portable Shared Memory Parallel Programming The MIT Press

None.

None.

Not applicable.

## 8Parallelism and Performance

nag_omp_get_nested (x06ahc) is not threaded in any implementation.