NAG Library Routine Document
X06AFF returns if called from within an active OpenMP parallel region, and otherwise.
X06AFF, for multi-threaded implementations, returns if called from within an active OpenMP parallel region, and otherwise.
Note that the equivalent OpenMP routine omp_in_parallel() returns a logical value.
In serial implementations of the NAG Library this routine will always return
. See the X06 Chapter Introduction
for a discussion of the behaviour of these routines when called in serial.
Chapman B, Jost G and van der Pas R (2008) Using OpenMP Portable Shared Memory Parallel Programming The MIT Press
6 Error Indicators and Warnings
8 Parallelism and Performance
X06AFF is not threaded in any implementation.
See Section 10
in X06ADF for a demonstration of how to use X06AFF.