The Fopts (see listing below, which is also part of the SP) should work for both CCLM4.8 and 5.0. If you use the dependency and object files from 4.8 and load the modules (already mentioned by the other replies) it will work. Do not use the object and dependency files from 5.0 for 4.8!! Note that the GRIBLIB is not part of the SP, if you want to use GRIB I/O you need to compile it and set the appropriate paths in the Fopts.
## #########
- preliminary recommendation for CCLM compiler options on MISTRAL
- H.-J. Panitz, IMK-TRO/KIT, 2015-07-29
- change compiler, options and libraries according to your needs
######### #
- Mistral (DKRZ) / Intel Compiler
#
- modules and libraries
-
..
MPI
MPI _INC =
MPI _LIB =
-
.. netCDF
NETCDFC _ROOT = /sw/rhel6-x64/netcdf/netcdf_c-4.3.2-gcc48
NETCDFF _ROOT = /sw/rhel6-x64/netcdf/netcdf_fortran-4.4.2-intel14
HDF5_ROOT = /sw/rhel6-x64/hdf5/hdf5-1.8.14-threadsafe-gcc48
SZIP _ROOT = /sw/rhel6-x64/sys/libaec-0.3.2-gcc48
NC_INC = -I${NETCDFF_ROOT}/include
NC_LIB = -L${NETCDFC_ROOT}/lib -lnetcdff
NC_LIB += -L${NETCDFF_ROOT}/lib -lnetcdf
NC_LIB += -L${HDF5_ROOT}/lib -lhdf5_hl -lhdf5 -lz
NC_LIB += -L${SZIP_ROOT}/lib -lsz -lm #
- .. GRIB
- The GRIB Library is not part of the starter package
GRIB_LIB=
#
-
name and path of standard binary to be produced
PROGRAM = bin/cclm.exe
-
.. other libs, if needed on the computer system (e.g. mathematical packages)
OTHLIBS1=
- compiler, options and libraries
- important note wiith respect to the compiler
-
I recommend to use the
BULL
MPI
environmet. For this the nake of the compiler
is “mpif90” - If you want to use the INTEL MPI environment, then you have to change the name to “mpiifort”
- F90 = mpif90
- if you want to use GRIB you have to at - DGRIB to the CPPFLAGS and
-
define the
GRIBLIB
library above
CPPFLAGS = - DNETCDF - DCLM
#
-
for purposes of first tests you may use in addition to the option below the op
tions -fpe0 -traceback
COMFLG = -c -cpp -Os -no-vec -fp-model source $( CPPFLAGS ) $( MPI _INC) ${NC_INC} -
I$( SRCDIR )
COMFLG1 = $(
COMFLG
)
COMFLG2 = $(
COMFLG
)
COMFLG3 = $(
COMFLG
)
#
-
Compile src_setup_vartab.f90 with optimization level -O0; speeds up the compil
ation very much!! - for pruposes of first tests I recommend to use in addition to the option below the optiopn -fpe0 -traceback
COMFLG4 = -c -cpp -O0 -no-vec -fp-model source $( CPPFLAGS ) $( MPI _INC) ${NC
_INC} -I$( SRCDIR )
#
LDSEQ = ${F90}
LDPAR = ${F90}
LDFLG = -I$(
SRCDIR
)
LIB = ${GRIB_LIB} ${NC_LIB} ${MPI_LIB} ${OTHLIBS1}
LIB += -Wl,-rpath,$(
NETCDFF
_ROOT)/lib:$(
NETCDFC
_ROOT)/lib:$(HDF5_ROOT)/l
ib:$(
SZIP
_ROOT)/lib
The Fopts (see listing below, which is also part of the SP) should work for both CCLM4.8 and 5.0. If you use the dependency and object files from 4.8 and load the modules (already mentioned by the other replies) it will work. Do not use the object and dependency files from 5.0 for 4.8!! Note that the GRIBLIB is not part of the SP, if you want to use GRIB I/O you need to compile it and set the appropriate paths in the Fopts.
MPI _INC =
MPI _LIB =
-
.. netCDF
#NETCDFC _ROOT = /sw/rhel6-x64/netcdf/netcdf_c-4.3.2-gcc48
NETCDFF _ROOT = /sw/rhel6-x64/netcdf/netcdf_fortran-4.4.2-intel14
HDF5_ROOT = /sw/rhel6-x64/hdf5/hdf5-1.8.14-threadsafe-gcc48
SZIP _ROOT = /sw/rhel6-x64/sys/libaec-0.3.2-gcc48
NC_INC = -I${NETCDFF_ROOT}/include
NC_LIB = -L${NETCDFC_ROOT}/lib -lnetcdff
NC_LIB += -L${NETCDFF_ROOT}/lib -lnetcdf
NC_LIB += -L${HDF5_ROOT}/lib -lhdf5_hl -lhdf5 -lz
NC_LIB += -L${SZIP_ROOT}/lib -lsz -lm #
-
..
GRIB
#-
The
GRIB
Library is not part of the starter package
#GRIB_LIB=
#
-
name and path of standard binary to be produced
#PROGRAM = bin/cclm.exe
-
.. other libs, if needed on the computer system (e.g. mathematical packages)
#OTHLIBS1=
-
compiler, options and libraries
#is “mpif90”
CPPFLAGS = - DNETCDF - DCLM
#
tions -fpe0 -traceback
COMFLG = -c -cpp -Os -no-vec -fp-model source $( CPPFLAGS ) $( MPI _INC) ${NC_INC} -
I$( SRCDIR )
COMFLG1 = $( COMFLG )
COMFLG2 = $( COMFLG )
COMFLG3 = $( COMFLG ) #
-
Compile src_setup_vartab.f90 with optimization level -O0; speeds up the compil
-
for pruposes of first tests I recommend to use in addition to the option below
the optiopn -fpe0 -traceback
#ation very much!!
COMFLG4 = -c -cpp -O0 -no-vec -fp-model source $( CPPFLAGS ) $( MPI _INC) ${NC
_INC} -I$( SRCDIR )
#
LDSEQ = ${F90}
LDPAR = ${F90}
LDFLG = -I$( SRCDIR )
LIB = ${GRIB_LIB} ${NC_LIB} ${MPI_LIB} ${OTHLIBS1}
LIB += -Wl,-rpath,$( NETCDFF _ROOT)/lib:$( NETCDFC _ROOT)/lib:$(HDF5_ROOT)/l
ib:$( SZIP _ROOT)/lib