/[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 38 by guez, Thu Jan 6 17:52:19 2011 UTC trunk/Compiler_options/gfortran_debug.mk revision 85 by guez, Thu Mar 6 17:35:22 2014 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 /user/guez_local/include/Gfortran  numer_rec_95_dir = /user/guez_local/lib/Numer_Rec_95_gfortran_debug
8  netcdf_lib_dir = /user/guez_local/lib  nr_util_dir = /user/guez_local/lib/NR_util_gfortran_debug
9    netcdf95_dir = /user/guez_local/lib/NetCDF95_gfortran_debug
10  numer_rec_dir = /user/guez_local/lib/Numer_Rec_Lionel_b  jumble_dir = /user/guez_local/lib/Jumble_debug
 nr_util_dir = /user/guez_local/lib/NR_util_j  
 netcdf95_dir = /user/guez_local/lib/NetCDF95_gfortran  
11    
12  # Include flags:  # Include flags:
13  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})
14    
15    # Fortran language options:
16    FFLAGS += -ffree-form -std=f95
17    
18    # Error and warning options:
19    FFLAGS += -fmax-errors=1 -pedantic-errors -Wall -Wcharacter-truncation -Wunderflow -Wunreachable-code
20    
21    # Debugging options:
22    FFLAGS += -ffpe-trap=invalid,zero,overflow -fbacktrace -fdump-core -g
23    
24  # Other flags which do not affect run time performance:  # Code generation options:
25  lang_flags = -ffree-form -frange-check -std=f95 -pedantic-errors -Wall -Wunderflow -Wextra  FFLAGS += -fcheck=bounds -fcheck=do -fcheck=mem -fcheck=pointer -fcheck=recursion -finit-real=SNAN
26    
27  # Flags which affect run time performance:  # Optimization options:
28  perf_flags = -fbacktrace -ffpe-trap=invalid,zero,overflow -fbounds-check -g3 -O0 -fstack-protector-all  FFLAGS += -O0
29    
30  FFLAGS = ${inc_flags} ${perf_flags}  LDLIBS = $(addprefix -L, ${netcdf_lib_dir} ${numer_rec_95_dir} ${netcdf95_dir} ${nr_util_dir} ${jumble_dir}) -ljumble -lnetcdf95 -lnetcdff -lnetcdf -lnumer_rec_95 -lnr_util
 F90FLAGS = ${inc_flags} ${lang_flags} ${perf_flags}  
31    
32  LDLIBS = $(addprefix -L, ${netcdf_lib_dir} ${numer_rec_dir} ${netcdf95_dir} ${nr_util_dir}) -lnetcdf95 -lnetcdff -lnetcdf -lhdf5_hl -lhdf5 -lnumer_rec -lnr_util  version_flag = --version

Legend:
Removed from v.38  
changed lines
  Added in v.85

  ViewVC Help
Powered by ViewVC 1.1.21