Integer type:  int32  int64  nag_int  show int32  show int32  show int64  show int64  show nag_int  show nag_int

Chapter Contents
Chapter Introduction
NAG Toolbox

NAG Toolbox: nag_info_licence (a00ac)

Purpose

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

Syntax

[result] = a00ac
[result] = nag_info_licence

Description

nag_info_licence (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.

None.

Parameters

None.

None.

Output Parameters

1:     $\mathrm{result}$ – logical scalar
The result of the function.

None.

Not applicable.

None.

Example

This example prints an appropriate message depending upon the value returned by nag_info_licence (a00ac).
```function a00ac_example

fprintf('a00ac example results\n\n');

[result] = a00ac;
if result
disp('A valid licence key is available');
else
disp('No valid licence key was found');
end

```
```a00ac example results

A valid licence key is available
```