NAG Fortran 77 Library on the SGI 3800 at NSC

The NAG Fortran 77 numerical program library is available on the SGI 3800. It has now been upgraded from Mark 19 to Mark 20. Information on the new Mark 20 is available. The new locations of the library files are given below.

The libraries are at /opt/nag/flsg620da/lib32/mips4/ and can be linked with

     f90 test.f90 -lnag -L'/opt/nag/flsg620da/lib32/mips4/'
for the version using complib.sgimath or with
     f90 test.f90  -lscs -lnag_scs -L'/opt/nag/flsg620da/lib32/mips4/'
for the version using the SCSL library. Please note that the NAG default on which library to use has changed as compared with Mark 19!

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 and also from the NSC web site if you first ask NSC for a password.

The library is in the default SGI double precision, eight bytes (double precision IEEE floating point precision) which is sometimes called real by NAG. The library is presently at Mark 20.

Additional user information

On the SGI 3800 area /opt/nag/flsg620da/, there are five directories:

The example programs are easy to use through the nagexample script. We have modified the original script for our installation at NSC. On your own directory you give the command

/opt/nag/nagexample NAG_name  
if you wish to use complib.sgimath or
/opt/nag/nagexample_2 NAG_name  
if you wish to use the SCSL library.

Here NAG_name is the name of the routine you wish to test, for example s17aef 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.

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: February 28, 2002