1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
edhill |
1.6 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_g77+mpi_cg01,v 1.5 2004/09/21 19:51:10 edhill Exp $ |
4 |
edhill |
1.3 |
# $Name: $ |
5 |
edhill |
1.1 |
# |
6 |
|
|
|
7 |
edhill |
1.3 |
|
8 |
|
|
FC='/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/g77/bin/mpif77' |
9 |
|
|
CC='/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/g77/bin/mpicc' |
10 |
edhill |
1.1 |
DEFINES='-DALLOW_USE_MPI -DALWAYS_USE_MPI -D_BYTESWAPIO -DWORDLENGTH=4' |
11 |
edhill |
1.3 |
INCLUDEDIRS='/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/g77/include' |
12 |
edhill |
1.6 |
INCLUDES='-I/usr/local/pkg/mpi/mpi-1.2.4..8a-gm-1.5/g77/include' |
13 |
edhill |
1.1 |
CPP='/lib/cpp -traditional -P' |
14 |
|
|
NOOPTFLAGS='-O0' |
15 |
edhill |
1.3 |
|
16 |
|
|
if test "x$IEEE" = x ; then |
17 |
|
|
# No need for IEEE-754 |
18 |
|
|
FFLAGS='-Wimplicit -Wunused -Wuninitialized' |
19 |
|
|
FOPTIM='-O3 -malign-double -funroll-loops' |
20 |
|
|
else |
21 |
|
|
# Try to follow IEEE-754 |
22 |
|
|
FFLAGS='-Wimplicit -Wunused -ffloat-store' |
23 |
|
|
FOPTIM='-O0 -malign-double' |
24 |
|
|
fi |
25 |
|
|
|
26 |
|
|
# netcdf |
27 |
edhill |
1.5 |
#LIBS="-lnetcdf" |
28 |
edhill |
1.1 |
|