1 |
heimbach |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
|
|
# Ed Hill |
4 |
|
|
# |
5 |
|
|
# tested on faulks, 20030818 |
6 |
|
|
# |
7 |
|
|
# Build options for the intel 9 fortran compiler on MAC OS X |
8 |
|
|
# On Mac PoweBookPro OSX 10.4.8 with standard ifort |
9 |
|
|
|
10 |
|
|
CC=icc |
11 |
|
|
FC=ifort |
12 |
|
|
F90C=ifort |
13 |
|
|
F90FIXEDFORMAT='-fixed -Tf' |
14 |
|
|
DEFINES='-DWORDLENGTH=4' |
15 |
|
|
LINK='ifort' |
16 |
|
|
CPP='cpp -traditional -P' |
17 |
|
|
INCLUDEDIRS='/sw/include' |
18 |
|
|
INCLUDES='-I/sw/include' |
19 |
|
|
LIBS='-L/sw/lib -lnetcdf' |
20 |
|
|
#ph none of these work yet |
21 |
|
|
#ph probably need to rebuild netcdf under ifort |
22 |
|
|
###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) _ ## X" |
23 |
|
|
###FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |
24 |
|
|
|
25 |
|
|
# Note that the -mp switch is for ieee "maintain precision" and is |
26 |
|
|
# roughly equivalent to -ieee |
27 |
|
|
if test "x$IEEE" = x ; then |
28 |
|
|
FOPTIM='-O3 -align' |
29 |
|
|
F90OPTIM='-O3' |
30 |
|
|
#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM' |
31 |
|
|
#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM' |
32 |
|
|
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl' |
33 |
|
|
F90FLAGS='-r8 -i4 -w95 -W0 -WB -convert big_endian -assume byterecl' |
34 |
|
|
else |
35 |
|
|
FOPTIM='-O0 -noalign' |
36 |
|
|
F90OPTIM='-O0 -g' |
37 |
|
|
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl' |
38 |
|
|
#FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
39 |
|
|
fi |
40 |
|
|
|
41 |
|
|
|
42 |
|
|
|