1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: $ |
4 |
# $Name: $ |
5 |
|
6 |
# Ed Hill |
7 |
# |
8 |
# tested on faulks, 20030818 |
9 |
# |
10 |
# Build options for the intel 8.0 fortran compiler |
11 |
# the compiler is now called ifort (not ifc) and it appears to |
12 |
# need -DWORDLENGTH=1 and not -DWORDLENGTH=4 (which is what ifc 6.0) used to have. |
13 |
# ph: use ifort compiler options -convert big_endian -assume byterecl |
14 |
|
15 |
FC=ifort |
16 |
F90C=ifort |
17 |
LINK='ifort -static' |
18 |
|
19 |
DEFINES='-DWORDLENGTH=4' |
20 |
CPP='cpp -traditional -P' |
21 |
F90FIXEDFORMAT='-fixed -Tf' |
22 |
EXTENDED_SRC_FLAG='-132' |
23 |
#OMPFLAG='-openmp' |
24 |
|
25 |
###INCLUDES='-I/ocean/data4/ce107/netcdf-3.6.1/Linux-i686-intel8/include' |
26 |
###LIBS='-L/ocean/data4/ce107/netcdf-3.6.1/Linux-i686-intel8/lib -lnetcdf' |
27 |
INCLUDES='-I/usr/local/pkg/netcdf/include' |
28 |
LIBS='-L/usr/local/pkg/netcdf/lib -lnetcdf' |
29 |
|
30 |
# Note that the -mp switch is for ieee "maintain precision" and is |
31 |
# roughly equivalent to -ieee |
32 |
if test "x$IEEE" = x ; then |
33 |
FOPTIM='-O3 -align' |
34 |
F90OPTIM='-O3' |
35 |
#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM' |
36 |
#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM' |
37 |
FFLAGS="$FFLAGS -w95 -W0 -WB -convert big_endian -assume byterecl" |
38 |
else |
39 |
FOPTIM='-O0 -noalign' |
40 |
F90OPTIM='-O0 -g' |
41 |
FFLAGS="$FFLAGS -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl" |
42 |
#FFLAGS="$FFLAGS -mp -w95 -W0 -WB" |
43 |
fi |
44 |
#- might want to use '-r8' for fizhi pkg: |
45 |
#FFLAGS="$FFLAGS -r8" |
46 |
|
47 |
F90FLAGS=$FFLAGS |