1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/darwin_ia32_pgf95_trane,v 1.1 2010/04/08 12:34:09 mlosch Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
# build options files for trane (with or without MPI) |
7 |
# uname -a |
8 |
# Darwin trane.evsc.virginia.edu 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 |
9 |
# |
10 |
# without MPI: genmake2 -of darwin_ia32_pgf95_trane |
11 |
# with MPI: genmake2 -of darwin_ia32_pgf95_trane -mpi |
12 |
|
13 |
if test "x$MPI" = xtrue ; then |
14 |
CC='mpicc' |
15 |
FC='mpif90' |
16 |
LINK='mpif90' |
17 |
else |
18 |
CC='pgcc' |
19 |
FC='pgf95' |
20 |
LINK='pgf90' |
21 |
fi |
22 |
|
23 |
DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR' |
24 |
CPP='/usr/bin/cpp -traditional -P' |
25 |
# make clean removes also these files |
26 |
RMFILES='*.oo' |
27 |
EXTENDED_SRC_FLAG='-Mextend' |
28 |
|
29 |
FFLAGS="$FFLAGS -byteswapio" |
30 |
|
31 |
if test "x$IEEE" = x ; then |
32 |
# No need for IEEE-754 |
33 |
FOPTIM='-fast -Mipa=fast,inline,safe' |
34 |
else |
35 |
# Try to follow IEEE-754 |
36 |
FFLAGS="$FFLAGS -Mnodclchk -Ktrap=fp -Kieee" |
37 |
FOPTIM= |
38 |
fi |
39 |
CFLAGS='-fast -Mipa=fast,inline,safe' |
40 |
|
41 |
# specific location for trane: |
42 |
MPI_INC_DIR="/common/mpich2-mx-1.1.1p1..5/src/include" |
43 |
if test "x$MPI" = xtrue ; then |
44 |
INCLUDES="$INCLUDES -I$MPI_INC_DIR" |
45 |
fi |
46 |
|
47 |
NETCDF_INCDIR="/common/usr/local/include" |
48 |
INCLUDES="$INCLUDES -I$NETCDF_INCDIR" |
49 |
LIBS="-L/common/usr/local/lib" |