1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_ifc+mpi_itrda,v 1.4 2005/02/04 17:07:03 jmc Exp $ |
4 |
# |
5 |
# adapted to itrda.acesgrid.org |
6 |
# Note: |
7 |
# currently need to ad to your .cshrc, .bashrc, etc. |
8 |
# setenv LD_LIBRARY_PATH /usr/local/pkg/ifc/ifc-8.0.034/lib |
9 |
# is required |
10 |
|
11 |
FC='mpif77' |
12 |
CC='mpicc' |
13 |
LINK='mpif77' |
14 |
INCLUDES='-I/usr/local/pkg/ifc/ifc-8.1.018/include -I/usr/local/pkg/mpich/mpich-intel/include/' |
15 |
LIBS='-L/usr/local/pkg/ifc/ifc-8.1.018/lib' |
16 |
|
17 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -D_BYTESWAPIO -DWORDLENGTH=1' |
18 |
CPP='cpp -traditional -P' |
19 |
|
20 |
NOOPTFLAGS='-O0' |
21 |
NOOPTFILES='mds_byteswapr8.F mds_byteswapr4.F mds_byteswapi4.F' |
22 |
|
23 |
# Note that the -mp switch is for ieee "maintain precision" and is |
24 |
# roughly equivalent to -ieee |
25 |
if test "x$IEEE" = x ; then |
26 |
FOPTIM='-O3 -align' |
27 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB' |
28 |
else |
29 |
#FOPTIM='-O0 -noalign -CA -CB -CU -CV -CS' |
30 |
FOPTIM='-O0 -noalign' |
31 |
#FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
32 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB -pc64 -xW' |
33 |
fi |
34 |
|
35 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
36 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F mds_byteswap.F' |