PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
modd_param_icen.F90
Go to the documentation of this file.
1!MNH_LIC Copyright 1995-2019 CNRS, Meteo-France and Universite Paul Sabatier
2!MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
3!MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
4!MNH_LIC for details. version 1.
5!-----------------------------------------------------------------
6! ######spl
8
9!$ACDC methods
10
11! #####################
12!> @file
13!! *MODD_PARAM_ICE_n* - declaration of the control parameters for the
14!! mixed phase cloud parameterization
15!!
16!! PURPOSE
17!! -------
18!! The purpose of this declarative module is to define the set of space
19!! and time control parameters for the microphysics.
20!!
21!! IMPLICIT ARGUMENTS
22!! ------------------
23!! None
24!!
25!! REFERENCE
26!! ---------
27!! Book2 of documentation of Meso-NH (module MODD_PARAM_ICE)
28!!
29!! AUTHOR
30!! ------
31!! J.-P. Pinty *Laboratoire d'Aerologie*
32!!
33!! MODIFICATIONS
34!! -------------
35!!
36!! - Original 14/12/95
37!! - Jan 2015 S. Riette: new ICE3/ICE4 parameters
38!! - 01/10/16 (C.Lac) Add droplet deposition for fog
39!! A. Marcel Jan 2025: bi-Gaussian PDF and associated subgrid precipitation
40!!
41!-------------------------------------------------------------------------------
42!
43!* 0. DECLARATIONS
44! ------------
45!
47IMPLICIT NONE
48!
50LOGICAL :: lwarm !< When .TRUE. activates the formation of rain by
51 !! the warm microphysical processes
52LOGICAL :: lsedic !< TRUE to enable the droplet sedimentation
53LOGICAL :: ldeposc !< TRUE to enable cloud droplet deposition
54REAL :: xvdeposc !< Droplet deposition velocity
55!
56CHARACTER(LEN=4) :: cpristine_ice !< Pristine ice type PLAT, COLU or BURO
57CHARACTER(LEN=4) :: csedim !< Sedimentation calculation mode
58!
59LOGICAL :: lred !< To use modified ICE3/ICE4 to reduce time step dependency
60LOGICAL :: lfeedbackt !< When .TRUE. feed back on temperature is taken into account
61LOGICAL :: levlimit !< When .TRUE. water vapour pressure is limited by saturation
62LOGICAL :: lnullwetg !< When .TRUE. graupel wet growth is activated with null rate (to allow water shedding)
63LOGICAL :: lwetgpost !< When .TRUE. graupel wet growth is activated with positive temperature (to allow water shedding)
64LOGICAL :: lnullweth !< Same as LNULLWETG but for hail
65LOGICAL :: lwethpost !< Same as LWETGPOST but for hail
66CHARACTER(LEN=4) :: csnowriming !< OLD or M90 for Murakami 1990 formulation
67REAL :: xfracm90 !< Fraction used for the Murakami 1990 formulation
68INTEGER :: nmaxiter_micro !< Maximum number of iterations for mixing ratio or time splitting
69REAL :: xmrstep !< maximum mixing ratio step for mixing ratio splitting
70LOGICAL :: lconvhg !< TRUE to allow the conversion from hail to graupel
71LOGICAL :: lcrflimit !< True to limit rain contact freezing to possible heat exchange
72!
73REAL :: xtstep_ts !< Approximative time step for time-splitting (0 for no time-splitting)
74!
75CHARACTER(LEN=80) :: csubg_rc_rr_accr !< subgrid rc-rr accretion
76CHARACTER(LEN=80) :: csubg_rr_evap !< subgrid rr evaporation
77CHARACTER(LEN=80) :: csubg_pr_pdf !< pdf for subgrid precipitation
78CHARACTER(LEN=4) :: csubg_aucv_rc !< type of subgrid rc->rr autoconv. method
79CHARACTER(LEN=80) :: csubg_aucv_ri !< type of subgrid ri->rs autoconv. method
80CHARACTER(LEN=80) :: csubg_mf_pdf !< PDF to use for MF cloud autoconversions
81!
82LOGICAL :: ladj_before !< must we perform an adjustment before rain_ice call
83LOGICAL :: ladj_after !< must we perform an adjustment after rain_ice call
84LOGICAL :: lsedim_after !< sedimentation done before (.FALSE.) or after (.TRUE.) microphysics
85!
86REAL :: xsplit_maxcfl !< Maximum CFL number allowed for SPLIT scheme
87LOGICAL :: lsnow_t !< Snow parameterization from Wurtz (2021)
88!
89LOGICAL :: lpack_interp !< To pack arrays before computing the different interpolations (kernels and other)
90!
91INTEGER :: npromicro !< Size of cache-blocking bloc (0 to deactivate)
92!
93LOGICAL :: lcriauti !< .T. to compute XACRIAUTI and XBCRIAUTI (from XCRIAUTI and XT0CRIAUTI);
94 !! .F. to compute XT0CRIAUTI (from XCRIAUTI and XBCRIAUTI)
95REAL :: xcriauti_nam !< Minimum value for the ice->snow autoconversion threshold
96REAL :: xt0criauti_nam !< Threshold temperature (???) for the ice->snow autoconversion threshold
97REAL :: xbcriauti_nam !< B barameter for the ice->snow autoconversion 10**(aT+b) law
98REAL :: xacriauti_nam !< A barameter for the ice->snow autoconversion 10**(aT+b) law
99REAL :: xcriautc_nam !< Threshold for liquid cloud -> rain autoconversion (kg/m**3)
100REAL :: xrdepsred_nam !< Tuning factor of sublimation of snow
101REAL :: xrdepgred_nam !< Tuning factor of sublimation of graupel
102!
103LOGICAL :: locnd2 !< Logical switch to separate liquid and ice
104LOGICAL :: lice_t !< Logical switch for ICE-T scheme
105LOGICAL :: lkogan !< Use Kogan autocoversion of liquid
106LOGICAL :: lmodicedep !< Logical switch for alternative dep/evap of ice
107LOGICAL :: lexcldrop !< Logical switch for use of external Cloud droplet (as from NRT aerosols) in microphysics
108
109REAL, DIMENSION(40) :: xfrmin_nam
110LOGICAL :: lext_tend=.true. !< Use external tendencies during the time-splitting
111!
112END TYPE param_ice_t
113!
114TYPE(param_ice_t), DIMENSION(JPMODELMAX), TARGET, SAVE :: param_ice_model
115TYPE(param_ice_t), POINTER, SAVE :: param_icen => null()
116!
117LOGICAL, POINTER :: lwarm => null(), &
118 lsedic => null(), &
119 ldeposc => null(), &
120 lred => null(), &
121 lfeedbackt => null(), &
122 levlimit => null(), &
123 lnullwetg => null(), &
124 lwetgpost => null(), &
125 lnullweth => null(), &
126 lwethpost => null(), &
127 lconvhg => null(), &
128 lcrflimit => null(), &
129 ladj_before => null(), &
130 ladj_after => null(), &
131 lsedim_after => null(), &
132 lsnow_t => null(), &
133 lpack_interp => null(), &
134 lcriauti => null(), &
135 locnd2 => null(), &
136 lice_t => null(), &
137 lkogan => null(), &
138 lmodicedep => null(), &
139 lexcldrop => null()
140
141REAL, POINTER :: xvdeposc => null(), &
142 xfracm90 => null(), &
143 xmrstep => null(), &
144 xtstep_ts => null(), &
145 xsplit_maxcfl => null(), &
146 xcriauti_nam => null(), &
147 xt0criauti_nam => null(), &
148 xbcriauti_nam => null(), &
149 xacriauti_nam => null(), &
150 xcriautc_nam => null(), &
151 xrdepsred_nam => null(), &
152 xrdepgred_nam => null()
153REAL, DIMENSION(:), POINTER :: xfrmin_nam => null()
154
155INTEGER, POINTER :: nmaxiter_micro => null(), &
156 npromicro => null()
157
158CHARACTER(LEN=4), POINTER :: cpristine_ice => null()
159CHARACTER(LEN=4), POINTER :: csedim => null()
160CHARACTER(LEN=4), POINTER :: csnowriming => null()
161CHARACTER(LEN=80),POINTER :: csubg_rc_rr_accr => null()
162CHARACTER(LEN=80),POINTER :: csubg_rr_evap => null()
163CHARACTER(LEN=80),POINTER :: csubg_pr_pdf => null()
164CHARACTER(LEN=4),POINTER :: csubg_aucv_rc=>null()
165CHARACTER(LEN=80),POINTER :: csubg_aucv_ri=>null()
166CHARACTER(LEN=80),POINTER :: csubg_mf_pdf=>null()
167!
168NAMELIST/nam_param_icen/lwarm,lsedic,lconvhg,cpristine_ice,csedim,ldeposc,xvdeposc, &
169 lred, lfeedbackt, &
180!
181!-------------------------------------------------------------------------------
182!
183CONTAINS
184SUBROUTINE param_ice_goto_model(KFROM, KTO)
185!! This subroutine associate all the pointers to the right component of
186!! the right strucuture. A value can be accessed through the structure PARAM_ICEN
187!! or through the strucuture PARAM_ICE_MODEL(KTO) or directly through these pointers.
188IMPLICIT NONE
189INTEGER, INTENT(IN) :: KFROM, KTO
190!
191IF(.NOT. ASSOCIATED(param_icen, param_ice_model(kto))) THEN
192 !
194 !
195 lwarm => param_icen%LWARM
196 lsedic => param_icen%LSEDIC
197 ldeposc => param_icen%LDEPOSC
198 lred => param_icen%LRED
199 lfeedbackt => param_icen%LFEEDBACKT
200 levlimit => param_icen%LEVLIMIT
201 lnullwetg => param_icen%LNULLWETG
202 lwetgpost => param_icen%LWETGPOST
203 lnullweth => param_icen%LNULLWETH
204 lwethpost => param_icen%LWETHPOST
205 lconvhg => param_icen%LCONVHG
206 lcrflimit => param_icen%LCRFLIMIT
207 ladj_before => param_icen%LADJ_BEFORE
208 ladj_after => param_icen%LADJ_AFTER
209 lsedim_after => param_icen%LSEDIM_AFTER
210 lsnow_t => param_icen%LSNOW_T
211 lpack_interp => param_icen%LPACK_INTERP
212 lcriauti => param_icen%LCRIAUTI
213 lice_t => param_icen%LICE_T
214 locnd2 => param_icen%LOCND2
215 lkogan => param_icen%LKOGAN
216 lmodicedep => param_icen%LMODICEDEP
217 lexcldrop => param_icen%LEXCLDROP
218 !
219 xvdeposc => param_icen%XVDEPOSC
220 xfracm90 => param_icen%XFRACM90
221 xmrstep => param_icen%XMRSTEP
222 xtstep_ts => param_icen%XTSTEP_TS
223 xsplit_maxcfl => param_icen%XSPLIT_MAXCFL
224 xcriauti_nam => param_icen%XCRIAUTI_NAM
225 xt0criauti_nam => param_icen%XT0CRIAUTI_NAM
226 xbcriauti_nam => param_icen%XBCRIAUTI_NAM
227 xacriauti_nam => param_icen%XACRIAUTI_NAM
228 xcriautc_nam => param_icen%XCRIAUTC_NAM
229 xrdepsred_nam => param_icen%XRDEPSRED_NAM
230 xrdepgred_nam => param_icen%XRDEPGRED_NAM
231 xfrmin_nam => param_icen%XFRMIN_NAM
232 !
233 nmaxiter_micro => param_icen%NMAXITER_MICRO
234 npromicro => param_icen%NPROMICRO
235 !
236 cpristine_ice => param_icen%CPRISTINE_ICE
237 csedim => param_icen%CSEDIM
238 csnowriming => param_icen%CSNOWRIMING
239 csubg_rc_rr_accr => param_icen%CSUBG_RC_RR_ACCR
240 csubg_rr_evap => param_icen%CSUBG_RR_EVAP
241 csubg_pr_pdf => param_icen%CSUBG_PR_PDF
242 csubg_aucv_rc=>param_icen%CSUBG_AUCV_RC
243 csubg_aucv_ri=>param_icen%CSUBG_AUCV_RI
244 csubg_mf_pdf=>param_icen%CSUBG_MF_PDF
245ENDIF
246END SUBROUTINE param_ice_goto_model
247!
248SUBROUTINE param_icen_init(HPROGRAM, TFILENAM, LDNEEDNAM, KLUOUT, &
249 &LDDEFAULTVAL, LDREADNAM, LDCHECK, KPRINT)
250!!*** *PARAM_ICEN_INIT* - Code needed to initialize the MODD_PARAM_ICE_n module
251!!
252!!* PURPOSE
253!! -------
254!! Sets the default values, reads the namelist, performs the checks and prints
255!!
256!!* METHOD
257!! ------
258!! 0. Declarations
259!! 1. Declaration of arguments
260!! 2. Declaration of local variables
261!! 1. Default values
262!! 2. Namelist
263!! 3. Checks
264!! 4. Prints
265!!
266!! AUTHOR
267!! ------
268!! S. Riette
269!!
270!! MODIFICATIONS
271!! -------------
272!! Original Feb 2023
273!-------------------------------------------------------------------------------
274!
275!* 0. DECLARATIONS
276! ---------------
277!
279USE mode_msg, ONLY: print_msg
282!
283IMPLICIT NONE
284!
285!* 0.1. Declaration of arguments
286! ------------------------
287!
288CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM !< Name of the calling program
289TYPE(tfiledata), INTENT(IN) :: TFILENAM !< Namelist file
290LOGICAL, INTENT(IN) :: LDNEEDNAM !< True to abort if namelist is absent
291INTEGER, INTENT(IN) :: KLUOUT !< Logical unit for outputs
292LOGICAL, OPTIONAL, INTENT(IN) :: LDDEFAULTVAL !< Must we initialize variables with default values (defaults to .TRUE.)
293LOGICAL, OPTIONAL, INTENT(IN) :: LDREADNAM !< Must we read the namelist (defaults to .TRUE.)
294LOGICAL, OPTIONAL, INTENT(IN) :: LDCHECK !< Must we perform some checks on values (defaults to .TRUE.)
295INTEGER, OPTIONAL, INTENT(IN) :: KPRINT !< Print level (defaults to 0): 0 for no print, 1 to safely print namelist,
296 !! 2 to print informative messages
297!
298!* 0.2 Declaration of local variables
299! ------------------------------
300!
301LOGICAL :: LLDEFAULTVAL, LLREADNAM, LLCHECK, LLFOUND
302INTEGER :: IPRINT
303
304lldefaultval=.true.
305llreadnam=.true.
306llcheck=.true.
307iprint=0
308IF(PRESENT(lddefaultval)) lldefaultval=lddefaultval
309IF(PRESENT(ldreadnam )) llreadnam =ldreadnam
310IF(PRESENT(ldcheck )) llcheck =ldcheck
311IF(PRESENT(kprint )) iprint =kprint
312!
313!* 1. DEFAULT VALUES
314! -----------------
315!
316IF(lldefaultval) THEN
317 !NOTES ON GENERAL DEFAULTS AND MODEL-SPECIFIC DEFAULTS :
318 !- General default values *MUST* remain unchanged.
319 !- To change the default value for a given application,
320 ! an "IF(HPROGRAM=='...')" condition must be used.
321
322 lwarm=.true.
323 lsedic=.true.
324 ldeposc=.false.
325 xvdeposc= 0.02 ! 2 cm/s
326 cpristine_ice='PLAT'
327 csedim='SPLI'
328 lred=.true.
329 lfeedbackt=.true.
330 levlimit=.true.
331 lnullwetg=.true.
332 lwetgpost=.true.
333 lnullweth=.true.
334 lwethpost=.true.
335 csnowriming='M90'
336 xfracm90=0.1
338 xmrstep=0.00005
339 lconvhg=.false.
340 lcrflimit=.true.
341 xtstep_ts=0.
342 csubg_rc_rr_accr='NONE'
343 csubg_rr_evap='NONE'
344 csubg_pr_pdf='SIGM'
345 csubg_aucv_rc='NONE'
346 csubg_aucv_ri='NONE'
347 csubg_mf_pdf='TRIANGLE'
348 ladj_before=.true.
349 ladj_after=.true.
350 lsedim_after=.false.
351 xsplit_maxcfl=0.8
352 lsnow_t=.false.
353 lpack_interp=.true.
354 npromicro=0
355 lcriauti=.false.
356 !!XCRIAUTIi_NAM = 0.25E-3 ! Critical ice content for the autoconversion to occur
357 xcriauti_nam = 0.2e-4 ! Revised value by Chaboureau et al. (2001)
358 xacriauti_nam=0.06
359 xbcriauti_nam=-3.5
361 xcriautc_nam=0.5e-3
364 lice_t=.false.
365 locnd2=.false.
366 lkogan=.false.
367 lmodicedep=.false.
368 lexcldrop=.false. ! Only can be TRUE if external Cloud droplets are used.
369 ! Tuning and modication of graupeln etc:
370 xfrmin_nam(1:4)=0. ! Different thresholds for snow, ice, graupel and graupel again, respectively,
371 ! leading to conversion of super-cooled rain into graupel
372 xfrmin_nam(5)=0. ! Higher value means less graupel and more snow (Experimental)
373 xfrmin_nam(6)=0. ! Higher value means more graupel and less snow (Experimental)
374 xfrmin_nam(7)=1. ! Tuning factor for the collisions between rain and snow. Higher values give less super-cooled rain and
375 ! more snow. Zero means that those collisions are disregarded (probably OK)
376 xfrmin_nam(8)=1. ! > 1. Increase melt of graupel, < 1 decrease it (Experimental)
377 xfrmin_nam(9)=1. ! > 1 means increase IN-concentration and <1 decrease
378 xfrmin_nam(10)=10. ! >10 means faster Kogan autoconversion <10 slower, only active for LKOGAN=T.
379 xfrmin_nam(11)=1. ! Setting e.g. 0.01 means that subgrid-scale fraction of cloud water is used. Minimum cloud
380 ! fraction=0.01, only active for LKOGAN=T.
381 xfrmin_nam(12)=0. ! Threshold supersaturation with respect to ice in the supersaturated part of the grid-box for treatment
382 ! in the microphysics computation, only used with OCND2
383 xfrmin_nam(13)=1.0e-15 ! Threshold mixing ratio for different non-vapor water species treated in the microphysics computation,
384 ! only used with OCND2
385 xfrmin_nam(14)=120. ! Time scale for conversion of large ice crystals to snow, only used with LMODICEDEP (Experimental)
386 xfrmin_nam(15)=1.0e-4 ! Ice crystal diameter(m) for conversion from cloud ice to snow.
387 ! Larger values lead to more ice and less snow
388 xfrmin_nam(16)=0. ! "C" parameter for size distribution of snow. (constant for number concentration, N=C lamda^x)
389 ! Only active if non-zero (Experimental)
390 xfrmin_nam(17)=0. ! "x" parameter for size distribution of snow. (slope for number concentration, N=C lamda^x)
391 ! Only active if XFRMIN(16) is non-zero (Experimental)
392 xfrmin_nam(18)=0. ! With XFRMIN(18)=1, snow and graupel melt are based on wet bulb temperature, instead of temperature
393 ! and leads to slower melting (Experimental)
394 xfrmin_nam(19)=0. ! Threshold cloud thickness for StCu/Cu transition [m] Only active for EDMF scheme and if non-zero, but
395 ! very small effect
396 xfrmin_nam(20)=0. ! Threshold cloud thickness used in shallow/deep decision [m]. Only active for EDMF scheme and if
397 ! non-zero, higher value gives more shallow convection and less deep model resolved convection
398 xfrmin_nam(21)=1. ! Tuning factor for ice clouds, such as cirrus. A larger value means a larger effect of the presence
399 ! of solid water and thus more ice clouds
400 xfrmin_nam(22)=1. ! Tuning parameter for CDNC at lowest model level. Lower value give lower CDNC. XFRMIN(22)=0.5 means
401 ! CDNC= old CDNC x 0.5
402 xfrmin_nam(23)=0.5 ! The lower limit for reduction of VSIGQSAT, only active with LHGT_QS
403 xfrmin_nam(24)=1.5 ! The upper limit for increase of VSIGQSAT, only active with LHGT_QS
404 xfrmin_nam(25)=30. ! The level thickness for which VSIGQSAT is unchanged with LHGT_QS, only active with LHGT_QS
405 xfrmin_nam(26)=0. ! If > 0.01, it replaces default CDNC everywhere. So XFRMIN(26)=50E6 (Beware of that it is in m-3!)
406 ! gives CDNC = 50 cm-3 at reference level (1000 hPa) and XFRMIN(26) x pressure/ ref-pressure elsewhere.
407 xfrmin_nam(27)=0. ! Minimum temperature (K) used for Meyers ice number concentration. Larger values give less ice for
408 ! temperatures below XFRMIN(27) (Experimental)
409 xfrmin_nam(28)=0. ! Currently not used
410 xfrmin_nam(29)=0. ! If >0. and XFRMIN(22)>0 it gives the upper limit in metres for which the reduction of CDNC has
411 ! an effect. A linear decrease from the lowest level to XFRMIN(29) meters is assumed
412 xfrmin_nam(30)=1. ! If not unity, CDNC is reduced/increased over sea with a factor XFRMIN(30) for the lowest model level
413 ! and linearly reaching "no change" at XFRMIN(29) m height. If XFRMIN(29) is unset, XFRMIN(30) only
414 ! affects the lowest model level
415 xfrmin_nam(31:38)=0. ! Currently not used
416 xfrmin_nam(39)=0.25 ! Speed factor for deposition/evaporation rate of graupel. Larger values give faster
417 ! deposition/evaporation, only used when OCND2=T and LMODICEDEP=F
418 xfrmin_nam(40)=0.15 ! Speed factor for deposition/evaporation rate of snow. Larger values give faster
419 ! deposition/evaporation, only used when OCND2=T and LMODICEDEP=F
420
421 IF(hprogram=='AROME') THEN
422 lconvhg=.true.
423 ladj_before=.true.
424 ladj_after=.false.
425 lred=.false.
426 csedim='STAT'
427 lsedic=.false.
428 xmrstep=0.
429 csubg_aucv_rc='PDF'
430 ELSEIF(hprogram=='MESONH') THEN
432 ELSEIF(hprogram=='LMDZ') THEN
433 csubg_aucv_rc='PDF'
434 csedim='STAT'
436 lcriauti=.true.
437 xcriautc_nam=0.001
438 xcriauti_nam=0.0002
440 lred=.true.
441 lconvhg=.true.
442 ladj_before=.true.
443 ladj_after=.false.
444 ENDIF
445ENDIF
446!
447!* 2. NAMELIST
448! -----------
449!
450IF(llreadnam) THEN
451 CALL posnam_phy(tfilenam, 'NAM_PARAM_ICEN', ldneednam, llfound)
452 IF(llfound) READ(unit=tfilenam%NLU, nml=nam_param_icen)
453ENDIF
454!
455!* 3. CHECKS
456! ---------
457!
458IF(llcheck) THEN
459 CALL check_nam_val_char(kluout, 'CPRISTINE_ICE', cpristine_ice, 'PLAT', 'COLU', 'BURO')
460 CALL check_nam_val_char(kluout, 'CSEDIM', csedim, 'SPLI', 'STAT', 'NONE')
461 CALL check_nam_val_char(kluout, 'CSUBG_RC_RR_ACCR', csubg_rc_rr_accr, 'NONE', 'PRFR')
462 CALL check_nam_val_char(kluout, 'CSUBG_RR_EVAP', csubg_rr_evap, 'NONE', 'CLFR', 'PRFR')
463 CALL check_nam_val_char(kluout, 'CSUBG_PR_PDF', csubg_pr_pdf, 'SIGM', 'HLCRECTPDF', 'HLCTRIANGPDF', &
464 'HLCQUADRAPDF', 'HLCISOTRIPDF')
465 CALL check_nam_val_char(kluout, 'CSUBG_AUCV_RC', csubg_aucv_rc, 'PDF ', 'CLFR', 'NONE', 'ADJU')
466 CALL check_nam_val_char(kluout, 'CSUBG_AUCV_RI', csubg_aucv_ri, 'NONE', 'CLFR', 'ADJU')
467 CALL check_nam_val_char(kluout, 'CSUBG_MF_PDF', csubg_mf_pdf, 'NONE', 'TRIANGLE', 'BIGA')
468 CALL check_nam_val_char(kluout, 'CSNOWRIMING', csnowriming, 'OLD ', 'M90 ')
469 CALL check_nam_val_real(kluout, 'XTSTEP_TS', xtstep_ts, '>=', 0.)
470 CALL check_nam_val_real(kluout, 'XSPLIT_MAXCFL', xsplit_maxcfl, '>', 0., '<=', 1.)
471 CALL check_nam_val_real(kluout, 'XVDEPOSC', xvdeposc, '>=', 0.)
472 CALL check_nam_val_real(kluout, 'XFRACM90', xfracm90, '>=', 0., '<=', 1.)
473 CALL check_nam_val_real(kluout, 'XMRSTEP', xmrstep, '>=', 0.)
474 CALL check_nam_val_int(kluout, 'NPROMICRO', npromicro, '>=', 0)
475
476 IF (locnd2 .AND. (xrdepsred_nam /= 1 .OR. xrdepgred_nam /= 1)) THEN
477 CALL abor1 ("XRDESRED_NAM and XRDEGRED_NAM must not be activated together with LOCND2")
478 ENDIF
479
480 IF (lsnow_t .AND. lice_t) THEN
481 CALL abor1 ("LSNOW_T and LICE_T can not be activated simultaneously")
482 ENDIF
483
484 IF(hprogram=='AROME' .OR. hprogram=='LMDZ') THEN
485 IF(.NOT. (ladj_before .AND. .NOT. ladj_after)) THEN
486 CALL print_msg(nverb_fatal, 'GEN', 'MODD_PARAM_ICE_n', 'With AROME/LMDZ, LADJ_BEFORE must be .T. and LADJ_AFTER must be .F.')
487 ENDIF
488 ENDIF
489
490 IF(lsnow_t .AND. .NOT. lred) THEN
491 CALL print_msg(nverb_fatal, 'GEN', 'MODD_PARAM_ICE_n', 'It is not possible to run LSNOW_T without LRED')
492 ENDIF
493ENDIF
494!
495!* 3. PRINTS
496! ---------
497!
498IF(iprint>=1) THEN
499 WRITE(unit=kluout,nml=nam_param_icen)
500ENDIF
501!
502END SUBROUTINE param_icen_init
503!
504END MODULE modd_param_ice_n
integer, parameter nverb_fatal
Definition modd_io.F90:6
character(len=4), pointer csnowriming
logical, pointer lmodicedep
character(len=80), pointer csubg_rr_evap
real, pointer xtstep_ts
logical, pointer lwarm
logical, pointer lcriauti
real, pointer xvdeposc
logical, pointer locnd2
integer, pointer nmaxiter_micro
subroutine param_icen_init(hprogram, tfilenam, ldneednam, kluout, lddefaultval, ldreadnam, ldcheck, kprint)
type(param_ice_t), pointer, save param_icen
character(len=80), pointer csubg_pr_pdf
logical, pointer lsedim_after
subroutine param_ice_goto_model(kfrom, kto)
logical, pointer lwetgpost
logical, pointer lnullwetg
logical, pointer lkogan
character(len=4), pointer csedim
real, pointer xfracm90
logical, pointer lwethpost
logical, pointer lice_t
logical, pointer lsedic
integer, pointer npromicro
real, pointer xcriautc_nam
real, pointer xsplit_maxcfl
type(param_ice_t), dimension(jpmodelmax), target, save param_ice_model
logical, pointer levlimit
real, pointer xbcriauti_nam
logical, pointer lred
real, pointer xmrstep
logical, pointer ldeposc
character(len=4), pointer cpristine_ice
real, pointer xcriauti_nam
character(len=80), pointer csubg_rc_rr_accr
logical, pointer lfeedbackt
logical, pointer lconvhg
character(len=4), pointer csubg_aucv_rc
logical, pointer lsnow_t
character(len=80), pointer csubg_aucv_ri
real, dimension(:), pointer xfrmin_nam
logical, pointer lcrflimit
real, pointer xrdepsred_nam
logical, pointer lnullweth
logical, pointer ladj_after
real, pointer xrdepgred_nam
logical, pointer ladj_before
logical, pointer lexcldrop
real, pointer xt0criauti_nam
character(len=80), pointer csubg_mf_pdf
real, pointer xacriauti_nam
logical, pointer lpack_interp
integer, parameter jpmodelmax
subroutine check_nam_val_char(kluout, hname, hvar, hvalue1, hvalue2, hvalue3, hvalue4, hvalue5, hvalue6, hvalue7, hvalue8, hvalue9, hvalue10, hvalue11, hvalue12)
subroutine check_nam_val_int(kluout, hname, kvalue, cdsign1, kval1, cdsign2, kval2)
subroutine check_nam_val_real(kluout, hname, pvalue, cdsign1, pval1, cdsign2, pval2)
subroutine, public posnam_phy(tfilenam, cdnaml, ldneednam, ldfound)