-
Notifications
You must be signed in to change notification settings - Fork 0
/
Debug_module.f90
95 lines (90 loc) · 3.92 KB
/
Debug_module.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
!> TEMPORARY MODULE for consistency with ecosx
! Will move all DEBUG from Config_module here one day
module Debug_module
! DebugCell is set in Solver_mod when DEBUG%RUNCHEM is true, i=debug_li,
! j=debug_lj, and k==20. Allows extra debug for one cell
logical, public, save :: DebugCell = .false.
type, public :: emep_debug
logical :: &
AOT = .false. &
,AEROSOL = .false. & ! ...needed for intended debugs are to work
,AQUEOUS = .false. &
,BCS = .false. & ! BoundaryConditions
,BIO = .false. & !< Biogenic emissions
,BIDIR = .false. & !< FUTURE Bi-directional exchange
,COLUMN = .false. & ! Used in Derived_mod for column integration
,COLSRC = .false. & ! Volcanic emissions and Emergency scenarios
,DERIVED = .false. & !
,DRYDEP = .false. & ! Skips fast chemistry to save some CPU
,DRYRUN = .false. & ! Skips fast chemistry to save some CPU
,EMISSIONS = .false. & ! DSHK
,EQUIB = .false. & !MARS, EQSAM etc.
,FORESTFIRE = .false. &
,GETEMIS = .false. &
,GLOBBC = .false. &
,GRIDVALUES = .false. &
,HOURLY_OUTPUTS = .false. & !
,IOPROG = .false. &
,LANDDEFS = .false. &
,MAINCODE = .false. & !< debugs main code (emepctm) driver
,MET = .false. &
,MOSAICS = .false. &
,MY_DERIVED = .false. &
,pH = .false. &
,PHYCHEM = .false. &
,POLLEN = .false. &
,ROADDUST = .false. &
,RSUR = .false. & ! Surface resistance
,RUNCHEM = .false. & ! DEBUG%RUNCHEM is SPECIAL
,MY_WETDEP = .false. &
,SEASALT = .false. &
,SETUP_1DCHEM = .false. &
,SETUP_1DBIO = .false. &
,SITES = .false. &
,SOILNOX = .false. &
,SOLVER = .false. &
,STOFLUX = .false. &
,VDS = .false.
! integer debug options allow different levels of verbosity
integer :: &
PFT_MAPS = 0 & !< Future option
,LANDUSE = 0 & !
,DO3SE = 0 & !
,SOA = 0 &
,STOP_HH = -1 ! If positive, code will quite when hh==STOP_HH
!----------------------------------------------------------
integer, dimension(2) :: IJ = [-999,-999] ! index for debugging print out
character(len=20) :: SPEC = 'O3' ! default.
character(len=20) :: datetxt = '-' ! default.
integer :: ISPEC = -999 ! Will be set after NML
end type emep_debug
type(emep_debug), public, save :: DEBUG
! Older style, awaiting conversion
logical, public, parameter :: &
DEBUG_ADV = .false. &
,DEBUG_BLM = .false. & ! Produces matrix of differnt Kz and Hmix
,DEBUG_DERIVED = .false. &
,DEBUG_ECOSYSTEMS = .false. &
,DEBUG_EMISSTACKS = .false. &
,DEBUG_Kz = .false. &
!!,DEBUG_DRYDEP = .false. &
,DEBUG_MY_DRYDEP = .false. &
,DEBUG_CLOVER = .false. &
,DEBUG_EMISTIMEFACS = .false. &
,DEBUG_LANDIFY = .false. &
,DEBUG_MASS = .false. &
,DEBUG_NEST = .false. &
,DEBUG_NEST_ICBC = .false. & ! IFS-MOZART/C-IFS BC
,DEBUG_NETCDF = .false. &
,DEBUG_NETCDF_RF = .false. & ! ReadField_CDF in NetCDF_mod
,DEBUG_NH3 = .false. & ! NH3Emis experimental
,DEBUG_OUTPUTCHEM = .false. & ! Output of netcdf results
,DEBUG_OUT_HOUR = .false. & ! Debug Output_hourly.f90
! ,DEBUG_POLLEN = .false. &
!MV ,DEBUG_RUNCHEM = .false. & ! DEBUG_RUNCHEM is SPECIAL
,DEBUG_DUST = .false. & ! Skips fast chemistry to save some CPU
,DEBUG_SUBMET = .false. &
,DEBUG_WETDEP = .false. &
,DEBUG_RB = .false. &
,DEBUG_SOILWATER = .false.
end module Debug_module