NAG Fortran Compiler

The NAG Fortran Compiler is robust, highly tested, and valued by developers all over the globe for its checking capabilities and detailed error reporting. The NAG Fortran Compiler is available on Linux, Microsoft Windows and Apple Mac. Release 6.1 has extensive support for both legacy and modern Fortran features, and also supports parallel programming with OpenMP.

The NAG Fortran Compiler provides support for:

  • Fortran 2008 (partial)
  • Fortran 2003 (almost complete)
  • Fortran 95
  • OpenMP 3.1

"My programs are much cleaner thanks to the new features in the NAG Fortran Compiler. This may seem like a minor issue, but there are literally hundreds of routines in my programs which pass arrays between them, and simpler interfaces lead to fewer mistakes. It's also useful to be able to write subroutines which decide the size of their return arrays internally, and to have allocatable arrays as structure components."
- Ian Thompson, Research Associate at Loughborough University

The NAG Fortran Compiler also provides:

  • Fortran pretty printer ("polisher");
  • Dependency generator for module and include files;
  • Call-graph generator;
  • Interface builder;
  • Precision unifier.

Availability

The NAG Fortran Compiler is available on Linux, Microsoft Windows and Mac OS X platforms. For users preferring an Integrated Development Environment (IDE) on Microsoft Windows or Apple Mac, NAG has developed NAG Fortran Builder.

Enhancements at Release 6.1

This is a minor release adding new features and improvements beyond those in 6.0.

The most important new features introduced in Release 6.1 are:

F2008:

  • DO CONCURRENT construct;
  • Bessel functions BESSEL_J0, BESSEL_Y0, BESSEL_J1, BESSEL_Y1, BESSEL_JN and BESSEL_YN;
  • COMPILER_VERSION and COMPILER_OPTIONS functions;
  • Multi-dimensional rank-remapping pointer assignment;
  • Complex-part designators %RE and %IM.

F2003:

  • Length type parameters for derived types;
  • Rounding mode edit descriptors in I/O formats.

Tools:

  • Precision unifier (nagfor =unifyprecision);
  • Additional options for the polish tool;
  • Improved interface-block generator.

Many other miscellaneous improvements including additional error checking and compiler options.

Enhancements at Release 6.0

This release was a major release adding new features and improvement beyond Release 5.3.1.

The most important new features introduced in Release 6.0 were:

OpenMP:

  • Support for OpenMP 3.1 in addition to OpenMP 3.0

F2008:

  • Maximum rank of an array is increased
  • Internal procedures can be passed as actual arguments or assigned to a procedure pointer
  • G0 and G0.d edit descriptors, and * (infinite) repeat factor
  • CONTIGUOUS attribute and IS_CONTIGUOUS intrinsic function
  • ERF, ERFC, ERFC_SCALED, GAMMA, LOG_GAMMA intrinsic functions
  • Implied-shape named array constants
  • ERROR STOP statement

F2003:

  • Kind type parameters for derived types

Tools:

  • New interface generator (nagfor =interfaces)
  • Additional options within the polisher tool

Many other miscellaneous improvements including additional error checking and compiler options.

Regular Updates

To ensure that we fulfil your existing and future requirements, the NAG Fortran Compiler is regularly updated with new and enhanced features.

Online Documentation

The NAG Fortran Compiler is accompanied by first-class electronic help guides giving you the detailed information you need to carry out your work quickly and effectively. A PDF version of the NAG Fortran Compiler Manual is also provided.

Expert Support

Subscription to our dedicated Technical Support Service includes automatic notification of updates and access to our domain experts who are there to assist you with your technical queries or difficulties.

Quality Assurance

The correctness and performance of the NAG Fortran Compiler are verified daily and before each release, using an extensive test suite which comprises twenty years' worth of test cases covering all aspects of accuracy and behaviour. The Fortran experts in the NAG Technical Support Service rapidly turn around enquiries and requests from customers, and each release of the NAG Fortran Compiler aggregates all improvements that have been applied to prior versions.