1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_ifc+mpi_itrda,v 1.1 2004/09/15 17:51:38 heimbach 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='/usr/local/pkg/mpich-gm/mpich-1.2.6..13-gm/ifc/bin/mpif77' |
12 |
LINK='/usr/local/pkg/mpich-gm/mpich-1.2.6..13-gm/ifc/bin/mpif77' |
13 |
INCLUDEDIRS='/usr/local/pkg/mpich-gm/mpich-1.2.6..13-gm/ifc/include' |
14 |
LIBS='-L/usr/local/pkg/mpich-gm/mpich-1.2.6..13-gm/ifc/lib -lfmpich -lmpich' |
15 |
#LIBS='-L/usr/local/pkg/ifc/ifc-8.0.034/lib' |
16 |
#LIBS='-lPEPCF90 -lnetcdf' |
17 |
|
18 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -D_BYTESWAPIO -DWORDLENGTH=1' |
19 |
CPP='/lib/cpp -traditional -P' |
20 |
|
21 |
NOOPTFLAGS='-O0' |
22 |
NOOPTFILES='mdsio_byteswapr8.F mdsio_byteswapr4.F' |
23 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
24 |
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F' |
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 |
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB' |
31 |
else |
32 |
FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
33 |
fi |