a00ac 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 methods. In particular, the use of this function is highly recommended in programs that call NAG Library methods within multithreaded sections (e.g., OpenMP parallel regions). The function need only be called once, before the start of the first multithreaded section.
Syntax
C# |
---|
public static bool a00ac() |
Visual Basic |
---|
Public Shared Function a00ac As Boolean |
Visual C++ |
---|
public: static bool a00ac() |
F# |
---|
static member a00ac : unit -> bool |
Return Value
a00ac 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 methods. In particular, the use of this function is highly recommended in programs that call NAG Library methods within multithreaded sections (e.g., OpenMP parallel regions). The function need only be called once, before the start of the first multithreaded section.
Description
a00ac returns the logical value true if a valid licence is found, otherwise false is returned.
On non licence-managed implementations, true is always returned.
References
None.
Error Indicators and Warnings
None.
Accuracy
Not applicable.
Parallelism and Performance
None.
Further Comments
None.
Example
This example prints an appropriate message depending upon the value returned by a00ac.