1 |
#!/bin/bash |
2 |
# |
3 |
# $Header: /u/gcmpack/MITgcm/tools/build_options/linux_ia32_pgf77+authors_fc5,v 1.5 2009/04/02 22:06:38 jmc Exp $ |
4 |
# |
5 |
|
6 |
# 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 |
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 |
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 |
|
20 |
if test "x$IEEE" = x ; then |
21 |
# No need for IEEE-754 |
22 |
FFLAGS="$FFLAGS -byteswapio -Mnodclchk -Mextend" |
23 |
FOPTIM="$FOPTIM -fastsse -Mvect=cachesize:524288,transform" |
24 |
else |
25 |
# Try to follow IEEE-754 |
26 |
FFLAGS="$FFLAGS -byteswapio" |
27 |
FOPTIM="$FOPTIM -O0 -Mscalarsse -Mcache_align -Mnoflushz -Kieee" |
28 |
fi |