3 |
# $Header$ |
# $Header$ |
4 |
# $Name$ |
# $Name$ |
5 |
|
|
6 |
# build options files for trane without MPI |
# build options files for trane (with or without MPI) |
7 |
# uname -a |
# 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 |
# 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 |
FC='pgf95' |
if test "x$MPI" = xtrue ; then |
14 |
CC='pgcc' |
CC='mpicc' |
15 |
LINK='pgf90' |
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' |
DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR' |
|
|
|
|
NETCDF_INCDIR="/common/usr/local/include" |
|
|
INCLUDES="$INCLUDES -I$NETCDF_INCDIR" |
|
|
LIBS="-L/common/usr/local/lib" |
|
|
|
|
24 |
CPP='/usr/bin/cpp -traditional -P' |
CPP='/usr/bin/cpp -traditional -P' |
25 |
CFLAGS='-fast -Mipa=fast,inline,safe' |
# 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 |
if test "x$IEEE" = x ; then |
32 |
# No need for IEEE-754 |
# No need for IEEE-754 |
|
FFLAGS='-byteswapio -Mextend' |
|
33 |
FOPTIM='-fast -Mipa=fast,inline,safe' |
FOPTIM='-fast -Mipa=fast,inline,safe' |
34 |
else |
else |
35 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
36 |
FFLAGS='-byteswapio -Mnodclchk -Mextend -Ktrap=fp -Kieee' |
FFLAGS="$FFLAGS -Mnodclchk -Ktrap=fp -Kieee" |
37 |
FOPTIM= |
FOPTIM= |
38 |
fi |
fi |
39 |
# make clean removes also these files |
CFLAGS='-fast -Mipa=fast,inline,safe' |
40 |
RMFILES='*.oo' |
|
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" |
50 |
|
|