The CSF2 has been replaced by the CSF3 - please use that system! This documentation may be out of date. Please read the CSF3 documentation instead. To display this old CSF2 page click here. |
NAG Fortran
Overview
The NAG Fortran Compiler is a full standard implementation of the ISO Fortran 95 language with the addition of almost all Fortran 2003, some Fortran 2008 and the most commonly-used features of OpenMP 3.0. It also has some support for analysis and transformation of code.
The compiler is mainly useful for code checking and transformation, and is not recommended for production use. It is a good way to check standards conformance at the level the compiler supports, and may provide useful alternative error messages.
Version 6.1 is installed on the CSF.
Restrictions on use
The compiler is licensed for non-commercial research and educational use. See the relevant IT Services
page for details.
Set up procedure
module load compilers/nag
will put the compiler on your PATH and set environment variables such as f90 which may be used by Autoconf and other build procedures.
Otherwise, the compiler and its component tools is invoked as nagfor; see the man page for details.
Further information
Once you have loaded the module, man pages are available for dbx90 (debugger), fpp (preprocessor), nagfmcheck (for memory checking), and nagfor (compiler etc.), as well as various Fortran modules it provides.
PDF documentation is available in the directory $NAGFOR/lib/NAG_Fortran/doc.
The following links may be useful: