hide long namesshow long names
hide short namesshow short names
Integer type:  int32  int64  nag_int  show int32  show int32  show int64  show int64  show nag_int  show nag_int

PDF version (NAG web site, 64-bit version, 64-bit version)
Chapter Contents
Chapter Introduction
NAG Toolbox

NAG Toolbox: nag_info_licence (a00ac)

 Contents

    1  Purpose
    2  Syntax
    7  Accuracy
    9  Example

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.

References

None.

Parameters

Compulsory Input Parameters

None.

Optional Input Parameters

None.

Output Parameters

1:     result – logical scalar
The result of the function.

Error Indicators and Warnings

None.

Accuracy

Not applicable.

Further Comments

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

PDF version (NAG web site, 64-bit version, 64-bit version)
Chapter Contents
Chapter Introduction
NAG Toolbox

© The Numerical Algorithms Group Ltd, Oxford, UK. 2009–2015