# NAG FL Interfacex06akf (get_​max_​active_​levels)

## ▸▿ Contents

Settings help

FL Name Style:

FL Specification Language:

## 1Purpose

x06akf returns the maximum number of nested active parallel regions allowed.

## 2Specification

Fortran Interface
 Function x06akf ( )
 Integer :: x06akf
#include <nag.h>
 Integer x06akf_ ()
The routine may be called by the names x06akf or nagf_omp_get_max_active_levels.

## 3Description

x06akf, for multithreaded implementations, retrieves the maximum number of nested active parallel regions allowed. This has either been set by the user or is the default for the implementation of OpenMP being used.
In serial implementations of the NAG Library this routine will always return $0$. See the X06 Chapter Introduction for a discussion of the behaviour of these routines when called in serial.

## 4References

The OpenMP API Specification for Parallel Programming
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

x06akf is not threaded in any implementation.