1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_alpha_g77,v 1.5 2010/12/19 22:42:23 jmc Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
FC='g77' |
7 |
|
8 |
DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77' |
9 |
CPP='cpp -traditional -P' |
10 |
EXTENDED_SRC_FLAG='-ffixed-line-length-132' |
11 |
GET_FC_VERSION="--version" |
12 |
|
13 |
if test "x$IEEE" = x ; then #- with optimisation: |
14 |
FFLAGS=' ' |
15 |
#FOPTIM='-ffast-math -fexpensive-optimizations -fomit-frame-pointer -O3' |
16 |
FOPTIM='-O3 -funroll-loops' |
17 |
else #- no optimisation + IEEE : |
18 |
# For IEEE, use the "-ffloat-store" option |
19 |
FFLAGS='-Wimplicit -Wunused -ffloat-store' |
20 |
FOPTIM='-O0' |
21 |
fi |
22 |
|
23 |
if test "x$MPI" = xtrue ; then |
24 |
INCLUDES='-I/usr/local/include' |
25 |
LIBS='-L/usr/local/lib/LINUX/ch_p4/ -lfmpich -lmpich' |
26 |
fi |