4 |
# $Name$ |
# $Name$ |
5 |
# |
# |
6 |
|
|
7 |
# Tested with gcc-gfortran v4.0.x as shipped with Fedora Core 4. |
# Tested with gcc-gfortran v4.1.x as shipped with Fedora Core 6,7,8 |
8 |
# It fixes the ' \' versus ' &' terminator problem but some |
# with gcc-gfortran v4.3.x as shipped with Fedora Core 9,10 |
9 |
# namelist problems remain. The biggest seems to be the inability |
# It fixes the ' \' versus ' &' terminator ; |
10 |
# of current gfortran versions to support namelist syntax such as: |
# with older versions (v4.0): namelist problems with syntax such as: |
|
# |
|
11 |
# fields(1,1) = 'UVELSLT ','VVELSLT ','WVELSLT ', |
# fields(1,1) = 'UVELSLT ','VVELSLT ','WVELSLT ', |
12 |
# |
# which results in run-time errors.) |
|
# which results in run-time errors. |
|
13 |
|
|
14 |
|
|
15 |
FC=gfortran |
FC=gfortran |
34 |
FOPTIM='-O3 -funroll-loops' |
FOPTIM='-O3 -funroll-loops' |
35 |
else |
else |
36 |
# Try to follow IEEE-754 |
# Try to follow IEEE-754 |
37 |
|
FFLAGS="$FFLAGS -Waliasing -Wampersand -Wnonstd-intrinsics -Wsurprising -Wline-truncation" |
38 |
|
# to get plenty of warnings : |
39 |
|
# FFLAGS="$FFLAGS -Wconversion -Wimplicit-interface -Wunused-labels" |
40 |
FOPTIM='-O0' |
FOPTIM='-O0' |
41 |
|
# for automatic testing with testreport (but no relation with IEEE arithmetic): |
42 |
|
FOPTIM="$FOPTIM -g -ffpe-trap=invalid,zero,overflow -fbounds-check" |
43 |
fi |
fi |
44 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
45 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |