NAG 5.0

Do the following to run NAG f95 code on our linux clusters.

Unload any other compilers by typing:

unload pgi
Choose address size in executable: for 64-bit executables type:
module load nag/5-64b
for 32-bit executables type:
module load nag/5-32b
for NAG v7 type:
module load nag/7

Compile objects:

f95 -c ex1.f95
f95 -c ex2.f95
Link objects:
f95 -o fexmpl ex1.o ex2.o

Run f95 -help to learn compiler/linker options. [Currently neither -g90 nor -hollerith_io nor -dusty appear to work.]

Then submit a script, such as the one below,

#PBS -N nag_test
#PBS -q route
#PBS -l nodes=1:ppn=1,walltime=24:00:00
#PBS -S /bin/bash
#PBS -M your-email-address
#PBS -m abe
#PBS -V
#
echo "I ran on:"
cat $PBS_NODEFILE
#
#cd to your execution directory first
cd /home/your-user-name
#
fexmpl
#