1 |
#!/bin/bash |
#!/bin/bash |
2 |
# |
# |
3 |
# Ed Hill |
# $Header$ |
4 |
|
# $Name$ |
5 |
# |
# |
6 |
# tested on faulks, 20030818 |
# tested on hugo (FC.4), eddy (FC.5): 20060119 |
7 |
# |
# |
8 |
# Build options for the intel 8.0 fortran compiler |
# Build options for the intel 9.0 fortran compiler |
9 |
# the compiler is now called ifort (not ifc) and it appears to |
# the compiler is now called ifort (not ifc) and it appears to |
10 |
# need -DWORDLENGTH=1 and not -DWORDLENGTH=4 (which is what ifc 6.0) used to have. |
# need -DWORDLENGTH=1 and not -DWORDLENGTH=4 (which is what ifc 6.0) used to have. |
11 |
# ph: use ifort compiler options -convert big_endian -assume byterecl |
# ph: use ifort compiler options -convert big_endian -assume byterecl |
16 |
DEFINES='-DWORDLENGTH=4' |
DEFINES='-DWORDLENGTH=4' |
17 |
LINK='/usr/local/pkg/intel/intel_fc_90/bin/ifort -i-static -no-ipo' |
LINK='/usr/local/pkg/intel/intel_fc_90/bin/ifort -i-static -no-ipo' |
18 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
19 |
INCLUDES='-I/usr/include/netcdf' |
INCLUDES='-I/usr/local/pkg/netcdf/netcdf-3.5.1/include' |
20 |
|
|
21 |
# Note that the -mp switch is for ieee "maintain precision" and is |
# Note that the -mp switch is for ieee "maintain precision" and is |
22 |
# roughly equivalent to -ieee |
# roughly equivalent to -ieee |
27 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl' |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl' |
28 |
F90FLAGS='-r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl' |
F90FLAGS='-r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl' |
29 |
else |
else |
30 |
FOPTIM='-O0 -noalign' |
FOPTIM='-O0 -noalign -check all' |
31 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl' |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl' |
32 |
#FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
#FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
33 |
fi |
fi |
34 |
|
|
|
|
|
|
|
|