NAG Fortran Library

The NAG Fortran numerical program library is available on the Cray T3E.

The library is at /usr/local/lib/libnag.a and can be linked with

             f90 test.f90 -lnag -L'/usr/local/lib'
The documentation is available at several departments (including a complete set at NSC), it is system independent. You can also read it on the network directly from Oxford. The library is in the default Cray T3E floating point precision, eight bytes (double precision IEEE floating point precision) and is simply called REAL in Fortran. The library is presently at Mark 19 and has been compiled with CF90 v3.3.0.1.

Mark 18 is available as /usr/local/lib/libnag18.a and has been compiled with CF90 v3.0.1.2.

Please note that the single precision versions of the NAG routines in this case (T3E) end with an E instead of the usual F, see the Users's Note.

Additional user information

On the T3E area /usr/local/lib/flcre19se/, also called /appl/lib/flcre19se/, there are five directories:

The example programs are easy to use through the nagexample script. On your own directory you give the command

/usr/local/lib/flcre19se/scripts/nagexample NAG_name
where NAG_name is the name of the routine you wish to test, for example s17aee for the Bessel function J0(x). The example program, together with its data file (if any), will be copied to your present directory, compiled, linked, and run.

The example program can quite often be used as the basis for the application program you are about to write.

Additional NAG Libraries

NAG also has a numerical parallel library (installed 18 June 1999 on our T3E) and a new numerical library written in full Fortran 90 (not installed on our T3E).

Assistance and support

Questions are welcome to Bo Einarsson, who has more than 25 years experience with NAG libraries. You can also contact the NAG directly, either using email to or the form.     Last modified: