1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_pgf77+mpi_aer,v 1.5 2010/03/21 21:34:01 jmc Exp $ |
4 |
# $Name: $ |
5 |
|
6 |
FC='/opt/mpich/bin/mpif77' |
7 |
CC='/opt/mpich/bin/mpicc' |
8 |
LINK='/opt/mpich/bin/mpif77' |
9 |
|
10 |
DEFINES='-DWORDLENGTH=4 -DNML_EXTENDED_F77' |
11 |
CPP='cpp -traditional -P' |
12 |
EXTENDED_SRC_FLAG='-Mextend' |
13 |
GET_FC_VERSION="-V" |
14 |
|
15 |
INCLUDES='-I/opt/mpich/include' |
16 |
LIBS='-L/opt/mpich/lib/ -lfmpich -lmpich' |
17 |
|
18 |
if test "x$IEEE" = x ; then |
19 |
# No need for IEEE-754 |
20 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk" |
21 |
FOPTIM='-fastsse -Mvect=cachesize:524288,transform' |
22 |
else |
23 |
# Try to follow IEEE-754 |
24 |
FFLAGS="$FFLAGS -byteswapio" |
25 |
FOPTIM='-O0 -Mvect=sse -Mscalarsse -Mcache_align -Mnoflushz -Kieee' |
26 |
fi |
27 |
#- might want to use '-r8' for fizhi pkg: |
28 |
#FFLAGS="$FFLAGS -r8" |