1 |
heimbach |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
|
|
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_ifc+mpi_cg01,v 1.2 2003/11/13 22:03:39 edhill 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 |
|
|
# Note that the -mp switch is for ieee "maintain precision" and is |
22 |
|
|
# roughly equivalent to -ieee |
23 |
|
|
if test "x$IEEE" = x ; then |
24 |
|
|
FOPTIM='-O3 -align' |
25 |
|
|
FFLAGS='-132 -r8 -i4 -w95 -W0 -WB' |
26 |
|
|
else |
27 |
|
|
FFLAGS='-mp -132 -r8 -i4 -w95 -W0 -WB' |
28 |
|
|
fi |
29 |
|
|
NOOPTFLAGS='-O0' |
30 |
|
|
|
31 |
|
|
NOOPTFILES='mdsio_byteswapr8.F mdsio_byteswapr4.F' |
32 |
|
|
NOOPTFILES=$NOOPTFILES' mitcplr_char2real.F mitcplr_real2char.F' |
33 |
|
|
NOOPTFILES=$NOOPTFILES' mitcplr_char2int.F mitcplr_int2char.F' |