/[lmdze]/trunk/Compiler_options/gfortran_debug.mk
ViewVC logotype

Contents of /trunk/Compiler_options/gfortran_debug.mk

Parent Directory Parent Directory | Revision Log Revision Log


Revision 191 - (show annotations)
Mon May 9 19:56:28 2016 UTC (8 years ago) by guez
File size: 1326 byte(s)
Extracted the call to read_comdissnew out of conf_gcm.

Made ok_instan a variable of module clesphys, itau_phy a variable of
module phyetat0_m, nid_ins a variable of module ini_histins_m, itap a
variable of new module time_phylmdz, so that histwrite_phy can be
called from any procedure without the need to cascade those variables
into that procedure. Made itau_w a variable of module time_phylmdz so
that it is computed only once per time step of physics.

Extracted variables of module clesphys which were in namelist
conf_phys_nml into their own namelist, clesphys_nml, and created
procedure read_clesphys reading clesphys_nml, to avoid side effect.

No need for double precision in procedure getso4fromfile. Assume there
is a single variable for the whole year in the NetCDF file instead of
one variable per month.

Created generic procedure histwrite_phy and removed procedure
write_histins, following LMDZ. histwrite_phy has only two arguments,
can be called from anywhere, and should manage the logic of writing or
not writing into various history files with various operations. So the
test on ok_instan goes inside histwrite_phy.

Test for raz_date in phyetat0 instead of physiq to avoid side effect.

Created procedure increment_itap to avoid side effect.

Removed unnecessary differences between procedures readsulfate and
readsulfate_pi.

1 # These are compiler dependent macros, meant to be included in the
2 # makefile for LMDZE.
3
4 netcdf_inc_dir = /usr/include
5 netcdf_lib_dir =
6
7 numer_rec_95_dir = ${HOME}/Desktop/lib/Numer_Rec_95_debug
8 nr_util_dir = ${HOME}/Desktop/lib/NR_util_debug
9 netcdf95_dir = ${HOME}/Desktop/lib/NetCDF95_debug
10 jumble_dir = ${HOME}/Desktop/lib/Jumble_debug
11
12 lib_dir_list = ${netcdf_lib_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir}
13
14 # Include flags:
15 FFLAGS = $(addprefix -I, ${netcdf_inc_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir})
16
17 # Fortran language options:
18 FFLAGS += -ffree-form -std=f95
19
20 # Error and warning options:
21 FFLAGS += -fmax-errors=1 -pedantic-errors -Wall -Wcharacter-truncation -Wunderflow -Wunreachable-code -Wno-conversion
22
23 # Debugging options:
24 FFLAGS += -ffpe-trap=invalid,zero,overflow -fbacktrace -fdump-core -g
25
26 # Code generation options:
27 FFLAGS += -fcheck=bounds -fcheck=do -fcheck=mem -fcheck=pointer -fcheck=recursion
28 FFLAGS += -finit-real=nan
29 ##FFLAGS += -finit-real=SNAN
30
31 # Optimization options:
32 FFLAGS += -O0
33
34 # Hardware model options:
35 ##FFLAGS += -mcmodel=medium
36
37 comma = ,
38
39 LDLIBS = $(addprefix -L, ${lib_dir_list}) -lnetcdf95 -lnetcdff -lnetcdf -lnumer_rec_95 -ljumble -lnr_util $(addprefix -Wl${comma}-rpath${comma}, ${lib_dir_list})
40
41 version_flag = --version

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.21