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 also (FC 14,17 & 19) v.12.0.4 (20110427) |
13 |
# |
# |
14 |
# MPI : Tested on danton (FC 14), with and without OpenMP, using |
# MPI : Tested on danton (FC 14), with and without OpenMP, using |
15 |
# intel compiler v.11.1.046 (20090630) and also v.12.0.4 (20110427) |
# intel compiler v.11.1.046 (20090630) and also v.12.0.4 (20110427) |
38 |
CC=icc |
CC=icc |
39 |
FC=ifort |
FC=ifort |
40 |
F90C=ifort |
F90C=ifort |
41 |
LINK=ifort |
LINK="$F90C -shared-intel" |
42 |
fi |
fi |
43 |
|
|
44 |
DEFINES='-DWORDLENGTH=4' |
DEFINES='-DWORDLENGTH=4' |
|
CPP='cpp -traditional -P' |
|
45 |
F90FIXEDFORMAT='-fixed -Tf' |
F90FIXEDFORMAT='-fixed -Tf' |
46 |
EXTENDED_SRC_FLAG='-132' |
EXTENDED_SRC_FLAG='-132' |
47 |
GET_FC_VERSION="--version" |
GET_FC_VERSION="--version" |
56 |
PROCF=-xHost |
PROCF=-xHost |
57 |
fi |
fi |
58 |
|
|
59 |
FFLAGS="$FFLAGS -m64 -fPIC -convert big_endian -assume byterecl" |
CFLAGS="-O0 -ip -m64 $PROCF" |
60 |
|
FFLAGS="$FFLAGS -m64 -convert big_endian -assume byterecl" |
61 |
|
#- for big setups, compile & link with "-fPIC" or set memory-model to "medium": |
62 |
|
CFLAGS="$CFLAGS -fPIC" |
63 |
|
FFLAGS="$FFLAGS -fPIC" |
64 |
|
#- with FC 19, need to use this without -fPIC (which cancels -mcmodel option): |
65 |
|
#CFLAGS="$CFLAGS -mcmodel=medium" |
66 |
|
#FFLAGS="$FFLAGS -mcmodel=medium" |
67 |
#- might want to use '-r8' for fizhi pkg: |
#- might want to use '-r8' for fizhi pkg: |
68 |
#FFLAGS="$FFLAGS -r8" |
#FFLAGS="$FFLAGS -r8" |
69 |
|
|
74 |
FOPTIM="-O0 -fp-model source -noalign $PROCF" |
FOPTIM="-O0 -fp-model source -noalign $PROCF" |
75 |
else #- development/check options: |
else #- development/check options: |
76 |
#FFLAGS="$FFLAGS -debug all -debug-parameters all -fp-model strict" |
#FFLAGS="$FFLAGS -debug all -debug-parameters all -fp-model strict" |
77 |
FFLAGS="$FFLAGS -warn all -warn nounused" |
FOPTIM="-O0 -noalign -g -traceback $PROCF" |
78 |
FOPTIM="-fpe0 -ftz -fp-stack-check -check all -ftrapuv" |
NOOPTFLAGS=$FOPTIM |
79 |
FOPTIM="$FOPTIM -O0 -noalign -g -traceback $PROCF" |
NOOPTFILES='adread_adwrite.F mdsio_rw_field.F mdsio_rw_slice.F' |
80 |
|
NOOPTFILES="$NOOPTFILES mdsio_readvector.F mdsio_writevector.F" |
81 |
|
FOPTIM="$FOPTIM -warn all -warn nounused" |
82 |
|
FOPTIM="$FOPTIM -fpe0 -ftz -fp-stack-check -check all -ftrapuv" |
83 |
fi |
fi |
84 |
fi |
fi |
85 |
|
|
86 |
F90FLAGS=$FFLAGS |
F90FLAGS=$FFLAGS |
87 |
F90OPTIM=$FOPTIM |
F90OPTIM=$FOPTIM |
|
CFLAGS="-O0 -ip -m64 -fPIC $PROCF" |
|
88 |
|
|
89 |
INCLUDEDIRS='' |
INCLUDEDIRS='' |
90 |
INCLUDES='' |
INCLUDES='' |
132 |
if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then |
if [ -n "$MPI_INC_DIR" -a "x$MPI" = xtrue ] ; then |
133 |
INCLUDES="$INCLUDES -I$MPI_INC_DIR" |
INCLUDES="$INCLUDES -I$MPI_INC_DIR" |
134 |
INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR" |
INCLUDEDIRS="$INCLUDEDIRS $MPI_INC_DIR" |
135 |
|
#- used for parallel (MPI) DIVA |
136 |
MPIINCLUDEDIR="$MPI_INC_DIR" |
MPIINCLUDEDIR="$MPI_INC_DIR" |
137 |
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' |
|
138 |
fi |
fi |