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

Diff of /trunk/Compiler_options/gfortran_debug.mk

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

trunk/Compilers/gfortran.mk revision 36 by guez, Thu Dec 2 17:11:04 2010 UTC trunk/Compiler_options/gfortran_debug.mk revision 191 by guez, Mon May 9 19:56:28 2016 UTC
# Line 1  Line 1 
1  # These are compiler dependent macros, meant to be included in the  # These are compiler dependent macros, meant to be included in the
2  # makefile for LMDZE.  # makefile for LMDZE.
3    
4  FC = gfortran  netcdf_inc_dir = /usr/include
5    netcdf_lib_dir =
6    
7  netcdf_inc_dir = /user/guez_local/include  numer_rec_95_dir = ${HOME}/Desktop/lib/Numer_Rec_95_debug
8  netcdf_lib_dir = /user/guez_local/lib  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  numer_rec_dir = /user/guez_local/lib/Numer_Rec_Lionel_b  lib_dir_list = ${netcdf_lib_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir}
 nr_util_dir = /user/guez_local/lib/NR_util_j  
 netcdf95_dir = /user/guez_local/lib/NetCDF95_gfortran  
13    
14  # Include flags:  # Include flags:
15  inc_flags = $(addprefix -I, ${libf_dir} ${libf_dir}/phylmd ${netcdf_inc_dir} ${numer_rec_dir} ${netcdf95_dir} ${nr_util_dir})  FFLAGS = $(addprefix -I, ${netcdf_inc_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir})
16    
17  # Other flags which do not affect run time performance:  # Fortran language options:
18  lang_flags = -ffree-form -frange-check -std=f95 -pedantic-errors -Wall -Wconversion -Wimplicit-interface -Wunderflow -Wextra -Wunreachable-code  FFLAGS += -ffree-form -std=f95
19    
20  # Flags which affect run time performance:  # Error and warning options:
21  perf_flags = -fbacktrace -ffpe-trap=invalid,zero,overflow -fbounds-check -g3 -O0 -fstack-protector-all  FFLAGS += -fmax-errors=1 -pedantic-errors -Wall -Wcharacter-truncation -Wunderflow -Wunreachable-code -Wno-conversion
22    
23  FFLAGS = ${inc_flags} ${perf_flags}  # Debugging options:
24  F90FLAGS = ${inc_flags} ${lang_flags} ${perf_flags}  FFLAGS += -ffpe-trap=invalid,zero,overflow -fbacktrace -fdump-core -g
25    
26  LDLIBS = $(addprefix -L, ${netcdf_lib_dir} ${numer_rec_dir} ${netcdf95_dir} ${nr_util_dir}) -lnetcdf95 -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lnumer_rec -lnr_util  # 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

Legend:
Removed from v.36  
changed lines
  Added in v.191

  ViewVC Help
Powered by ViewVC 1.1.21