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