a00acc provides a convenient means of checking the availability of a valid licence key on licence-managed implementations before starting computations that will use NAG Library functions. In particular, the use of this function is highly recommended in programs that call NAG Library functions within multithreaded sections (e.g., OpenMP parallel regions). The function need only be called once, before the start of the first multithreaded section.
2Specification
#include <nag.h>
Nag_Boolean
a00acc ()
The function may be called by the names: a00acc, nag_info_licence or nag_licence_query.
3Description
a00acc returns the logical value Nag_TRUE if a valid licence is found, otherwise Nag_FALSE is returned.
On non licence-managed implementations, Nag_TRUE is always returned.
4References
None.
5Arguments
None.
6Error Indicators and Warnings
None.
7Accuracy
Not applicable.
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.
Not applicable.
9Further Comments
None.
10Example
This example prints an appropriate message depending upon the value returned by a00acc.