Installation Date: October 4, 2001
Version: ASLI R6
Installed On: slate.mines.edu
On-Line Users Manuals
Configuring Libraries and Running Compiler
NAG is a set of F77, F90, and F95 basic and advanced scientific libraries, and a F95 compiler.
To use these libraries, or the F95 compiler you need to set the following environment
variable (syntax assumes ksh):
- export PATH=$PATH:/usr/local/bin/
This line should be added to your login .profile if you use NAG often.
When compiling, you will also need the following compiler argument(s):
| -L/usr/local/lib |
before your list of NAG libraries. |
| -I/usr/local/lib/fl77_modules |
if you are using F77. |
| -I/usr/local/lib/fl90_modules |
if you are using F90. |
The key files are:
| /usr/local/bin/f95 |
F95 compiler |
| /usr/local/bin/dbx90 |
F90 debugger |
| /usr/local/lib/libnag.a |
F77 library |
| /usr/local/lib/libnagfl90.a |
F90 library |
| /usr/local/lib/NAGWare/ |
F95 libraries |
WARNING: If you are compiling Fortran77 or Fortran90, you still use
the f95 compiler. This compiler is much stricter about syntax than most Fortran compilers, and F77
and F90 code may not compile until you correct various errors. If you need a more forgiving compiler, try the
default IBM-AIX compiler xlf (this unfortunately is not currently working at the moment).
Example Compiler Commands:
The following commands will create hello from hello.f using the F77, F90, and F95 libraries
respectively (these are all one line commands).
- f95 -o hello -I/usr/local/lib/fl77_modules -L/usr/local/lib -lnag hello.f
- f95 -o hello -I/usr/local/lib/fl90_modules -L/usr/local/lib -lnagfl90 hello.f
- f95 -o hello hello.f
More information can be found at:
- http://www.nag.com/support_Info+FAQ.asp