This article introduces the Fortran and C library of software under the Numerical Algorithm Group (NAG) license. NAG library is a collection of robust, documented, tested and maintained numerical algorithms.
NAG libraries are made available via
module commands which are only available once you are on scientific server and within the Linux group of users.
In addition to loading a module for the library, you will usually need to load a module for the compiler you are using.
$ module load contrib/nag/25 $ module list Currently Loaded Modulefiles: 1) intel/fce/15.0.090 2) contrib/nag/25
The NAG library is loaded as well as the Intel Fortran compiler. Now you can compile your code and link to the NAG library
$ ifort your_code.f90 -lnag_nag -o your_code.exec
Running NAG's example programs
Example 01: How to find a NAG library routine
Example 02: How to use the NAG library
NAG Fortran Library fll6i25dcl
The following shows the directory and file organization of the implementation materials
|- in.html (Installer's Note - this document) |- doc -|- un.html (Users' Note) | |- lic_agr.txt (license agreement) | | |- libnag_nag.a (static self-contained library | | including NAG BLAS/LAPACK) | |- libnag_nag.so.25 (shareable self-contained library | | including NAG BLAS/LAPACK) | |- libnag_nag.so (symbolic link pointing at |- lib -| libnag_nag.so.26) | |- libnag_mkl.a (static library requiring | | MKL BLAS/LAPACK) | |- libnag_mkl.so.25 (shareable library requiring | | MKL BLAS/LAPACK) | |- libnag_mkl.so (symbolic link pointing at | libnag_mkl.so.26) fll6i25dcl -| |- nag_interface_blocks -|- * (interface blocks for Intel compiler) | | |- source --|- ??????e.f90 | | |- examples -|- data ----|- ??????e.d | | |- ??????e.opt | | | |- results -|- ??????e.r | | |- nag_example* (scripts to compile and run |- scripts -| NAG example programs) | | | |- nag_recompile_mods (script to recompile | interface blocks) | |- c_headers -|- * (C/C++ header file and information) | |- mkl_intel64_11.2.0 -|- * (Intel Math Kernel Library) | |- rtl -|- * (Intel compiler run-time libraries) | | |- bin -|- * (directories of license management | | binaries for supported platforms) |- license -|- README.txt | |- doc -|- * (license management documentation)<br>