9 |
# Tested on baudelaire (FC 13) with intel compiler v.11.1.073 (20100806) |
# Tested on baudelaire (FC 13) with intel compiler v.11.1.073 (20100806) |
10 |
# |
# |
11 |
# OpenMP : tested on danton (FC 14) using intel compiler v.11.1.046 (20090630) |
# OpenMP : tested on danton (FC 14) using intel compiler v.11.1.046 (20090630) |
12 |
# and also (FC 14,17 & 19) v.12.0.4 (20110427) |
# and (FC 14,17 & 19) v.12.0.4 (20110427) |
13 |
|
# and also (FC 19) v.14.0.0 (20130728) |
14 |
# |
# |
15 |
# MPI : Tested on danton (FC 14), with and without OpenMP, using |
# MPI : Tested on danton, with and without OpenMP, |
16 |
# intel compiler v.11.1.046 (20090630) and also v.12.0.4 (20110427) |
# using intel compiler v.11.1.046 and v.12.0.4 and also v.14.0.0 |
17 |
|
# and on acesgrid (FC 15) with intel compiler v.13.0.0.079 (20120731) |
18 |
# ==> DON'T FORGET to set environment variable MPI_INC_DIR to the include |
# ==> DON'T FORGET to set environment variable MPI_INC_DIR to the include |
19 |
# directory of your MPI implementation |
# directory of your MPI implementation |
20 |
|
|
61 |
CFLAGS="-O0 -ip -m64 $PROCF" |
CFLAGS="-O0 -ip -m64 $PROCF" |
62 |
FFLAGS="$FFLAGS -m64 -convert big_endian -assume byterecl" |
FFLAGS="$FFLAGS -m64 -convert big_endian -assume byterecl" |
63 |
#- for big setups, compile & link with "-fPIC" or set memory-model to "medium": |
#- for big setups, compile & link with "-fPIC" or set memory-model to "medium": |
64 |
CFLAGS="$CFLAGS -fPIC" |
#CFLAGS="$CFLAGS -fPIC" |
65 |
FFLAGS="$FFLAGS -fPIC" |
#FFLAGS="$FFLAGS -fPIC" |
66 |
#- with FC 19, need to use this without -fPIC (which cancels -mcmodel option): |
#- with FC 19, need to use this without -fPIC (which cancels -mcmodel option): |
67 |
#CFLAGS="$CFLAGS -mcmodel=medium" |
CFLAGS="$CFLAGS -mcmodel=medium" |
68 |
#FFLAGS="$FFLAGS -mcmodel=medium" |
FFLAGS="$FFLAGS -mcmodel=medium" |
69 |
#- might want to use '-r8' for fizhi pkg: |
#- might want to use '-r8' for fizhi pkg: |
70 |
#FFLAGS="$FFLAGS -r8" |
#FFLAGS="$FFLAGS -r8" |
71 |
|
|
72 |
if test "x$IEEE" = x ; then #- with optimisation: |
if test "x$IEEE" = x ; then #- with optimisation: |
73 |
FOPTIM="-O2 -align -ip -opt-streaming-stores auto $PROCF" |
FOPTIM="-O2 -align -ip -fp-model source $PROCF" |
74 |
else |
else |
75 |
if test "x$DEVEL" = x ; then #- no optimisation + IEEE : |
if test "x$DEVEL" = x ; then #- no optimisation + IEEE : |
76 |
FOPTIM="-O0 -fp-model source -noalign $PROCF" |
FOPTIM="-O0 -fp-model source -noalign $PROCF" |
79 |
FOPTIM="-O0 -noalign -g -traceback $PROCF" |
FOPTIM="-O0 -noalign -g -traceback $PROCF" |
80 |
NOOPTFLAGS=$FOPTIM |
NOOPTFLAGS=$FOPTIM |
81 |
NOOPTFILES='adread_adwrite.F mdsio_rw_field.F mdsio_rw_slice.F' |
NOOPTFILES='adread_adwrite.F mdsio_rw_field.F mdsio_rw_slice.F' |
|
NOOPTFILES="$NOOPTFILES mdsio_readvector.F mdsio_writevector.F" |
|
82 |
FOPTIM="$FOPTIM -warn all -warn nounused" |
FOPTIM="$FOPTIM -warn all -warn nounused" |
83 |
FOPTIM="$FOPTIM -fpe0 -ftz -fp-stack-check -check all -ftrapuv" |
FOPTIM="$FOPTIM -fpe0 -ftz -fp-stack-check -check all -ftrapuv" |
84 |
fi |
fi |