6 |
# Build options for Fedore Core 4 i686 Pentium4 |
# Build options for Fedore Core 4 i686 Pentium4 |
7 |
# tested on (Linux lagoon 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 i686 i386 GNU/Linux) system 20071121 |
# tested on (Linux lagoon 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 i686 i386 GNU/Linux) system 20071121 |
8 |
# |
# |
9 |
|
# Note: use just -O2 optimisation to avoid some wierd problems with -O3 |
10 |
|
# on aces (open64/4.1 & 4.2) (ideal_2D_ocean) |
11 |
|
|
12 |
CC=opencc |
CC=opencc |
13 |
FC=openf90 |
FC=openf90 |
28 |
|
|
29 |
if test "x$IEEE" = x ; then |
if test "x$IEEE" = x ; then |
30 |
# No need for IEEE-754 |
# No need for IEEE-754 |
31 |
FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations' |
FOPTIM='-O2 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' # -funsafe-math-optimizations' |
32 |
else |
else |
33 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
34 |
FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math' |
FOPTIM='-O2 -LNO:fusion=2 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math' |
35 |
fi |
fi |
36 |
|
|
37 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
38 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
39 |
CFLAGS='-O3 -m32' |
CFLAGS='-O2 -m32' |
40 |
GSLLIB='-lgsl -lgslcblas' |
GSLLIB='-lgsl -lgslcblas' |
41 |
|
|
42 |
if [ "x$NETCDF_ROOT" != x ] ; then |
if [ "x$NETCDF_ROOT" != x ] ; then |