1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_ifc,v 1.7 2005/02/01 17:19:26 jmc Exp $ |
4 |
# $Name: $ |
5 |
# |
6 |
|
7 |
FC=ifc |
8 |
CC=gcc |
9 |
DEFINES='-D_BYTESWAPIO -DWORDLENGTH=4' |
10 |
CPP='cpp -traditional -P' |
11 |
INCLUDES='-I/usr/include/netcdf' |
12 |
LIBS='-lPEPCF90' |
13 |
|
14 |
NOOPTFLAGS='-O0' |
15 |
NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F' |
16 |
|
17 |
# Note that the -mp switch is for ieee "maintain precision" and is |
18 |
# roughly equivalent to -ieee |
19 |
if test "x$IEEE" = x ; then |
20 |
FOPTIM='-O3 -align' |
21 |
#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM' |
22 |
#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM' |
23 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB' |
24 |
else |
25 |
# FOPTIM='-O0 -noalign' |
26 |
FOPTIM='-O0 -noalign -CA -CB -CU -CV -CS' |
27 |
# FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
28 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -pc64 -xW' |
29 |
NOOPTFILES=$NOOPTFILES' fizhi_turb.F' |
30 |
fi |
31 |
|
32 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
33 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F' |