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