NAG FL Interface
a00acf (licence)

Settings help

FL Name Style:


FL Specification Language:


1 Purpose

a00acf 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 routines. In particular, the use of this function is highly recommended in programs that call NAG Library routines within multithreaded sections (e.g., OpenMP parallel regions). The function need only be called once, before the start of the first multithreaded section.

2 Specification

Fortran Interface
Function a00acf ( )
Logical :: a00acf
C Header Interface
#include <nag.h>
Nag_Boolean  a00acf_ ()
The routine may be called by the names a00acf or nagf_info_licence.

3 Description

a00acf returns the logical value .TRUE. if a valid licence is found, otherwise .FALSE. is returned.
On non licence-managed implementations, .TRUE. is always returned.

4 References

None.

5 Arguments

None.

6 Error Indicators and Warnings

None.

7 Accuracy

Not applicable.

8 Parallelism and Performance

Background information to multithreading can be found in the Multithreading documentation.
Not applicable.

9 Further Comments

None.

10 Example

This example prints an appropriate message depending upon the value returned by a00acf.

10.1 Program Text

Program Text (a00acfe.f90)

10.2 Program Data

None.

10.3 Program Results

Program Results (a00acfe.r)