1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
jmc |
1.7 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_pgf77+authors_fc5,v 1.6 2009/08/08 17:00:46 jmc Exp $ |
4 |
|
|
# $Name: $ |
5 |
edhill |
1.1 |
|
6 |
jmc |
1.7 |
# on author: |
7 |
jmc |
1.5 |
# (csh,tcsh) setenv PGI /usr/local/pkg/pgi/pgi-6.1-5 |
8 |
|
|
# (sh,bash) export PGI=/usr/local/pkg/pgi/pgi-6.1-5 |
9 |
|
|
|
10 |
edhill |
1.1 |
FC='/usr/local/pkg/pgi/pgi-6.1-5/linux86/6.1/bin/pgf77' |
11 |
|
|
CC='/usr/local/pkg/pgi/pgi-6.1-5/linux86/6.1/bin/pgcc' |
12 |
jmc |
1.7 |
if test "x$ALWAYS_USE_F90" = x1 ; then |
13 |
|
|
FC='/usr/local/pkg/pgi/pgi-6.1-5/linux86/6.1/bin/pgf90' |
14 |
|
|
fi |
15 |
|
|
|
16 |
edhill |
1.1 |
DEFINES='-DWORDLENGTH=4' |
17 |
|
|
CPP='cpp -traditional -P' |
18 |
jmc |
1.7 |
EXTENDED_SRC_FLAG='-Mextend' |
19 |
|
|
|
20 |
edhill |
1.1 |
# INCLUDES="-I/scratch/edhill/netcdf_for_pgi/pgi_fc3/include" |
21 |
|
|
# LIBS="-L/scratch/edhill/netcdf_for_pgi/pgi_fc3/lib" |
22 |
|
|
|
23 |
|
|
if test "x$IEEE" = x ; then |
24 |
|
|
# No need for IEEE-754 |
25 |
jmc |
1.7 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk" |
26 |
|
|
FOPTIM='-fastsse -Mvect=cachesize:524288,transform' |
27 |
edhill |
1.1 |
else |
28 |
|
|
# Try to follow IEEE-754 |
29 |
jmc |
1.6 |
FFLAGS="$FFLAGS -byteswapio" |
30 |
jmc |
1.7 |
FOPTIM='-O0 -Mscalarsse -Mcache_align -Mnoflushz -Kieee' |
31 |
edhill |
1.1 |
fi |
32 |
jmc |
1.7 |
#- might want to use '-r8' for fizhi pkg: |
33 |
|
|
#FFLAGS="$FFLAGS -r8" |
34 |
edhill |
1.1 |
|