1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: $ |
4 |
# $Name: $ |
5 |
|
6 |
# Build options for Harvard cluster "swell" |
7 |
|
8 |
FC=mpif90 |
9 |
F90C=mpif90 |
10 |
CC=mpicc |
11 |
LINK='mpif90' |
12 |
|
13 |
DEFINES='-DWORDLENGTH=4 -DALLOW_USE_MPI -DALWAYS_USE_MPI' |
14 |
CPP='cpp -traditional -P' |
15 |
EXTENDED_SRC_FLAG='-132' |
16 |
|
17 |
#INCLUDES='-I/usr/include/netcdf' |
18 |
INCLUDES='-I/opt/netcdf-3.6.0-p1/include -I/usr/local/topspin/mpi/mpich/include' |
19 |
LIBS='-L/opt/netcdf-3.6.0-p1/lib -L/usr/local/topspin/mpi/mpich/lib64 -lmpich_i -lpthread' |
20 |
|
21 |
# Note that the -mp switch is for ieee "maintain precision" and is |
22 |
# roughly equivalent to -ieee |
23 |
if test "x$IEEE" = x ; then |
24 |
FFLAGS="$FFLAGS -w95 -g -convert big_endian -assume byterecl" |
25 |
FOPTIM='-O3 -align' |
26 |
#P3 FOPTIM=$FOPTIM' -tpp6 -xWKM' |
27 |
#P4 FOPTIM=$FOPTIM' -tpp7 -xWKM' |
28 |
else |
29 |
FOPTIM='-O0 -noalign' |
30 |
FFLAGS="$FFLAGS -w95 -W0 -WB -xN -pc64 -convert big_endian -assume byterecl" |
31 |
#FFLAGS="$FFLAGS -mp -w95 -W0 -WB" |
32 |
fi |
33 |
#- might want to use '-r8' for fizhi pkg: |
34 |
#FFLAGS="$FFLAGS -r8" |