1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
edhill |
1.5 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_ifc+mpi_cg01,v 1.4 2004/09/02 14:09:19 jmc Exp $ |
4 |
|
|
# $Name: $ |
5 |
edhill |
1.1 |
# |
6 |
|
|
|
7 |
jmc |
1.4 |
FC='/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/intel/bin/mpif77' |
8 |
|
|
LINK='/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/intel/bin/mpif77' |
9 |
|
|
INCLUDEDIRS='/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/intel/include' |
10 |
edhill |
1.1 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -D_BYTESWAPIO -DWORDLENGTH=4' |
11 |
|
|
CPP='/lib/cpp -traditional -P' |
12 |
jmc |
1.4 |
NOOPTFLAGS='-O0' |
13 |
edhill |
1.5 |
NOOPTFILES='mdsio_byteswapr8.F mdsio_byteswapr4.F' |
14 |
|
|
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
15 |
|
|
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F' |
16 |
edhill |
1.1 |
|
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 |
edhill |
1.5 |
#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM' |
22 |
|
|
#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM' |
23 |
edhill |
1.1 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB' |
24 |
|
|
else |
25 |
jmc |
1.4 |
# FOPTIM='-O0 -noalign' |
26 |
|
|
FOPTIM='-O0 -noalign -CA -CB -CU -CV -CS' |
27 |
edhill |
1.1 |
FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
28 |
|
|
fi |
29 |
|
|
|
30 |
edhill |
1.3 |
LIBS='-lPEPCF90 -lnetcdf' |
31 |
edhill |
1.1 |
|