1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_g77+mpi_aces,v 1.1 2006/07/28 15:17:04 edhill Exp $ |
4 |
# $Name: $ |
5 |
# |
6 |
# These are the build options used with the GNU compiler for the |
7 |
# daily testing on ACES (which are initiated by cron jobs on the "ao" |
8 |
# head node). |
9 |
# |
10 |
# Please note the appropriate module command: |
11 |
# |
12 |
# module add mpich/gnu |
13 |
# |
14 |
|
15 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -D_BYTESWAPIO -DWORDLENGTH=4' |
16 |
CPP='cpp -traditional -P' |
17 |
|
18 |
FC='mpif77' |
19 |
CC='mpicc' |
20 |
LINK='mpif77' |
21 |
LIBS='-L/usr/local/pkg/mpich/mpich-gcc/lib ' |
22 |
INCLUDES='-I/usr/local/pkg/mpich/mpich-gcc/include ' |
23 |
|
24 |
if test "x$IEEE" = x ; then |
25 |
# No need for IEEE-754 |
26 |
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
27 |
FOPTIM='-O3 -malign-double -funroll-loops' |
28 |
else |
29 |
# Try to follow IEEE-754 |
30 |
# FFLAGS='-Wimplicit -Wunused -ffloat-store' |
31 |
FFLAGS='-Wimplicit -Wunused -mfpmath=sse -msse -msse2' |
32 |
FOPTIM='-O0 -malign-double' |
33 |
fi |
34 |
NOOPTFLAGS='-O0' |