1 |
edhill |
1.1 |
#!/bin/bash |
2 |
|
|
# |
3 |
jmc |
1.5 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_pgf77+authors_fc5,v 1.4 2008/05/09 16:38:35 jmc Exp $ |
4 |
edhill |
1.1 |
# |
5 |
|
|
|
6 |
jmc |
1.5 |
# on author: |
7 |
|
|
# (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 |
|
|
DEFINES='-DWORDLENGTH=4' |
13 |
|
|
CPP='cpp -traditional -P' |
14 |
|
|
# INCLUDES="-I/scratch/edhill/netcdf_for_pgi/pgi_fc3/include" |
15 |
|
|
# LIBS="-L/scratch/edhill/netcdf_for_pgi/pgi_fc3/lib" |
16 |
jmc |
1.4 |
if test "x$ALWAYS_USE_F90" = x1 ; then |
17 |
|
|
FC='/usr/local/pkg/pgi/pgi-6.1-5/linux86/6.1/bin/pgf90' |
18 |
|
|
fi |
19 |
edhill |
1.1 |
|
20 |
|
|
if test "x$IEEE" = x ; then |
21 |
|
|
# No need for IEEE-754 |
22 |
|
|
FFLAGS='-byteswapio -r8 -Mnodclchk -Mextend' |
23 |
|
|
FOPTIM='-fastsse -Mvect=cachesize:524288,transform' |
24 |
|
|
else |
25 |
|
|
# Try to follow IEEE-754 |
26 |
jmc |
1.2 |
FFLAGS='-byteswapio -r8' |
27 |
jmc |
1.3 |
FOPTIM='-O0 -Mscalarsse -Mcache_align -Mnoflushz -Kieee' |
28 |
edhill |
1.1 |
fi |
29 |
|
|
|