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 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 |
|
|
40 |
CC=icc |
CC=icc |
41 |
FC=ifort |
FC=ifort |
42 |
F90C=ifort |
F90C=ifort |
43 |
LINK=ifort |
LINK="$F90C -shared-intel" |
44 |
fi |
fi |
45 |
|
|
46 |
DEFINES='-DWORDLENGTH=4' |
DEFINES='-DWORDLENGTH=4' |
|
CPP='cpp -traditional -P' |
|
47 |
F90FIXEDFORMAT='-fixed -Tf' |
F90FIXEDFORMAT='-fixed -Tf' |
48 |
EXTENDED_SRC_FLAG='-132' |
EXTENDED_SRC_FLAG='-132' |
49 |
GET_FC_VERSION="--version" |
GET_FC_VERSION="--version" |
58 |
PROCF=-xHost |
PROCF=-xHost |
59 |
fi |
fi |
60 |
|
|
61 |
FFLAGS="$FFLAGS -m64 -fPIC -convert big_endian -assume byterecl" |
CFLAGS="-O0 -ip -m64 $PROCF" |
62 |
|
FFLAGS="$FFLAGS -m64 -convert big_endian -assume byterecl" |
63 |
|
#- for big setups, compile & link with "-fPIC" or set memory-model to "medium": |
64 |
|
#CFLAGS="$CFLAGS -fPIC" |
65 |
|
#FFLAGS="$FFLAGS -fPIC" |
66 |
|
#- with FC 19, need to use this without -fPIC (which cancels -mcmodel option): |
67 |
|
CFLAGS="$CFLAGS -mcmodel=medium" |
68 |
|
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" |
87 |
|
|
88 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
89 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
|
CFLAGS="-O0 -ip -m64 -fPIC $PROCF" |
|
90 |
|
|
91 |
INCLUDEDIRS='' |
INCLUDEDIRS='' |
92 |
INCLUDES='' |
INCLUDES='' |
134 |
if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then |
if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then |
135 |
INCLUDES="$INCLUDES -I$MPI_INC_DIR" |
INCLUDES="$INCLUDES -I$MPI_INC_DIR" |
136 |
INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR" |
INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR" |
137 |
|
#- used for parallel (MPI) DIVA |
138 |
MPIINCLUDEDIR="$MPI_INC_DIR" |
MPIINCLUDEDIR="$MPI_INC_DIR" |
139 |
MPI_HEADER_FILES='mpif.h mpiof.h' |
#MPI_HEADER_FILES='mpif.h mpiof.h' |
|
MPI_HEADER_FILES_INC='./mpi_headers/mpif.h ./mpi_headers/mpiof.h' |
|
140 |
fi |
fi |