1 |
ce107 |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
|
|
# $Header: /u/gcmpack/MITgcm/tools/build_options/sp4,v 1.6 2005/01/13 00:16:31 ce107 Exp $ |
4 |
|
|
# |
5 |
|
|
|
6 |
|
|
# tested on frost, ce107 Aug 5 2005 |
7 |
|
|
# using the following invocation: |
8 |
|
|
# ../../../tools/genmake2 -mods=../code -of=../../../tools/build_options/bgl_ncar |
9 |
|
|
|
10 |
|
|
|
11 |
|
|
S64='$(TOOLSDIR)/set64bitConst.sh' |
12 |
|
|
MAKEDEPEND=makedepend |
13 |
|
|
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -DWORDLENGTH=4 -DTARGET_BGL' |
14 |
|
|
|
15 |
|
|
INCLUDES='-I/bgl/BlueLight/ppcfloor/bglsys/include -I/contrib/bgl/netcdf-3.6.0-p1/include' |
16 |
|
|
CPP='/lib/cpp -traditional -P' |
17 |
|
|
FC='blrts_xlf' |
18 |
|
|
CC='blrts_xlc' |
19 |
|
|
LINK='blrts_xlf' |
20 |
|
|
LIBS='-L/contrib/bgl/lib -lmass -lmassvbgl -Wl,--allow-multiple-definition -L/contrib/bgl/netcdf-3.6.0-p1/lib -lnetcdf -L/bgl/BlueLight/ppcfloor/bglsys/lib -lmpich.rts -lmsglayer.rts -lrts.rts -ldevices.rts' |
21 |
|
|
FFLAGS='-qfixed=132' |
22 |
|
|
if test "x$IEEE" = x ; then |
23 |
|
|
# No need for IEEE-754 |
24 |
|
|
FOPTIM='-O5 -qarch=440d -qtune=440 -qmaxmem=-1 -qipa=noobject:partition=large:threads' |
25 |
|
|
CFLAGS='-O5 -qarch=440d -qtune=440 -qmaxmem=-1 -qipa=noobject:partition=large:threads' |
26 |
|
|
else |
27 |
|
|
FOPTIM='-g -O -qarch=440 -qtune=440 -qmaxmem=64000' |
28 |
|
|
CFLAGS='-g -O -qarch=440 -qtune=440 -qmaxmem=64000' |
29 |
|
|
fi |
30 |
|
|
FC_NAMEMANGLE="#define FC_NAMEMANGLE(X) X" |