1 |
#!/bin/bash |
2 |
# build options files for trane with MPI |
3 |
# remove MPI='true' to get non-mpi executables |
4 |
# uname -a |
5 |
# 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 |
6 |
# |
7 |
|
8 |
FC='mpif90' |
9 |
CC='mpicc' |
10 |
LINK='mpif90' |
11 |
|
12 |
DEFINES='-DWORDLENGTH=4 -DNML_TERMINATOR' |
13 |
|
14 |
MPI='true' |
15 |
MPI_INC_DIR="/common/mpich2-mx-1.1.1p1..5/src/include" |
16 |
INCLUDES="$INCLUDES -I$MPI_INC_DIR" |
17 |
|
18 |
NETCDF_INCDIR="/common/usr/local/include" |
19 |
INCLUDES="$INCLUDES -I$NETCDF_INCDIR" |
20 |
LIBS="-L/common/usr/local/lib" |
21 |
|
22 |
CPP='/usr/bin/cpp -traditional -P' |
23 |
CFLAGS='-fast -Mipa=fast,inline,safe' |
24 |
|
25 |
if test "x$IEEE" = x ; then |
26 |
# No need for IEEE-754 |
27 |
FFLAGS='-byteswapio -Mextend' |
28 |
FOPTIM='-fast -Mipa=fast,inline,safe' |
29 |
else |
30 |
# Try to follow IEEE-754 |
31 |
FFLAGS='-byteswapio -Mnodclchk -Mextend -Ktrap=fp -Kieee' |
32 |
FOPTIM= |
33 |
fi |
34 |
# make clean removes also these files |
35 |
RMFILES='*.oo' |