1 |
jmc |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
|
|
# Ed Hill |
4 |
|
|
# |
5 |
|
|
# tested on faulks, 20030818 |
6 |
|
|
# |
7 |
|
|
# Build options for the intel 8.0 fortran compiler |
8 |
|
|
# the compiler is now called ifort (not ifc) and it appears to |
9 |
|
|
# need -DWORDLENGTH=1 and not -DWORDLENGTH=4 (which is what ifc 6.0) used to have. |
10 |
|
|
|
11 |
|
|
|
12 |
|
|
FC=ifort |
13 |
|
|
DEFINES='-DWORDLENGTH=4' |
14 |
|
|
LINK='ifort -static' |
15 |
|
|
CPP='cpp -traditional -P' |
16 |
|
|
INCLUDES='-I/ocean/data4/ce107/netcdf-3.6.0b6/include' |
17 |
|
|
LIBS='-L/ocean/data4/ce107/netcdf-3.6.0b6/lib -lnetcdf' |
18 |
|
|
|
19 |
|
|
# Note that the -mp switch is for ieee "maintain precision" and is |
20 |
|
|
# roughly equivalent to -ieee |
21 |
|
|
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl -ftrapuv -fpconstant' |
22 |
|
|
if test "x$IEEE" = x ; then |
23 |
|
|
FOPTIM='-O3 -align' |
24 |
|
|
else |
25 |
|
|
FOPTIM='-O0 -noalign -xN -pc64' |
26 |
|
|
fi |
27 |
|
|
|