30 |
if test "x$MPI" = xtrue ; then |
if test "x$MPI" = xtrue ; then |
31 |
CC=mpicc |
CC=mpicc |
32 |
FC=mpif90 |
FC=mpif90 |
33 |
|
F90C=mpif90 |
34 |
LINK=mpif90 |
LINK=mpif90 |
35 |
else |
else |
36 |
CC=opencc |
CC=opencc |
37 |
FC=openf90 |
FC=openf90 |
38 |
|
F90C=openf90 |
39 |
LINK=openf90 |
LINK=openf90 |
40 |
fi |
fi |
41 |
|
|
42 |
DEFINES='-DWORDLENGTH=4' |
DEFINES='-DWORDLENGTH=4' |
43 |
CPP='cpp -traditional -P' |
CPP='cpp -traditional -P' |
44 |
EXTENDED_SRC_FLAG='-extend-source' |
EXTENDED_SRC_FLAG='-extend-source' |
45 |
|
F90FIXEDFORMAT='-fixedform -x f95' |
46 |
GET_FC_VERSION="--version" |
GET_FC_VERSION="--version" |
47 |
OMPFLAG='-openmp' |
OMPFLAG='-openmp' |
48 |
#OMPFLAG='-openmp -OPT:early_mp=ON' |
#OMPFLAG='-openmp -OPT:early_mp=ON' |
58 |
#- full optimisation |
#- full optimisation |
59 |
# ("-Ofast" eqv "-O3 -ipa -OPT:Ofast -fno-math-errno -ffast-math" and "-OPT:Ofast" |
# ("-Ofast" eqv "-O3 -ipa -OPT:Ofast -fno-math-errno -ffast-math" and "-OPT:Ofast" |
60 |
# eqv to "-OPT:roundoff=2 -OPT:Olimit=0 -OPT:div_split=ON -OPT:alias=typed") |
# eqv to "-OPT:roundoff=2 -OPT:Olimit=0 -OPT:div_split=ON -OPT:alias=typed") |
61 |
FOPTIM='-Ofast -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' |
#FOPTIM='-Ofast -OPT:roundoff=1:IEEE_arithmetic=3 -LNO:fusion=2' |
62 |
|
FOPTIM='-O3 -OPT:Ofast:roundoff=1:IEEE_arithmetic=3 -ffast-math -LNO:fusion=2' |
63 |
#- high optimisation (-O3), might find Pb with few S/R; fully safe: switch to -O2: |
#- high optimisation (-O3), might find Pb with few S/R; fully safe: switch to -O2: |
64 |
#FOPTIM='-O3 -LNO:fusion=2 -OPT:roundoff=1:IEEE_arithmetic=3' |
#FOPTIM='-O3 -OPT:roundoff=1:IEEE_arithmetic=3 -LNO:fusion=2' |
65 |
|
NOOPTFLAGS='-O3 -OPT:roundoff=1:IEEE_arithmetic=2 -LNO:fusion=2' |
66 |
|
NOOPTFILES='seaice_evp.F' |
67 |
else |
else |
68 |
if test "x$DEVEL" = x ; then #- no optimisation + IEEE : |
if test "x$DEVEL" = x ; then #- no optimisation + IEEE : |
69 |
FOPTIM='-O0 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math' |
FOPTIM='-O0 -OPT:roundoff=0:IEEE_arithmetic=1 -fmath-errno -fno-fast-math' |