1 |
edhill |
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 |
|
|
# ph: use ifort compiler options -convert big_endian -assume byterecl |
11 |
|
|
|
12 |
|
|
FC=/usr/local/pkg/intel/intel_fc_90/bin/ifort |
13 |
|
|
F90C=/usr/local/pkg/intel/intel_fc_90/bin/ifort |
14 |
|
|
F90FIXEDFORMAT='-fixed -Tf' |
15 |
|
|
DEFINES='-DWORDLENGTH=4' |
16 |
|
|
LINK='/usr/local/pkg/intel/intel_fc_90/bin/ifort -i-static -no-ipo' |
17 |
|
|
CPP='cpp -traditional -P' |
18 |
|
|
INCLUDES='-I/usr/include/netcdf' |
19 |
|
|
|
20 |
|
|
# Note that the -mp switch is for ieee "maintain precision" and is |
21 |
|
|
# roughly equivalent to -ieee |
22 |
|
|
if test "x$IEEE" = x ; then |
23 |
|
|
FOPTIM='-O3 -align' |
24 |
|
|
#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM' |
25 |
|
|
#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM' |
26 |
|
|
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl' |
27 |
|
|
F90FLAGS='-r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl' |
28 |
|
|
else |
29 |
|
|
FOPTIM='-O0 -noalign' |
30 |
|
|
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl' |
31 |
|
|
#FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
32 |
|
|
fi |
33 |
|
|
|
34 |
|
|
|
35 |
|
|
|