PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
modd_rain_ice_paramn.F90
Go to the documentation of this file.
1!MNH_LIC Copyright 1994-2014 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! ######spl
7
8!$ACDC methods
9
10! ##########################
11!> @file
12!!**** *MODD_RAIN_ICE_PARAM_n* - declaration of some microphysical factors
13!! extensively used in the warm and cold schemes.
14!!
15!! PURPOSE
16!! -------
17! The purpose of this declarative module is to declare some precomputed
18! microphysical paramters directly used in routine RAIN_ICE.
19!
20!!
21!!** IMPLICIT ARGUMENTS
22!! ------------------
23!! None
24!!
25!! REFERENCE
26!! ---------
27!! Book2 of documentation of Meso-NH (MODD_RAIN_ICE_PARAM)
28!!
29!! AUTHOR
30!! ------
31!! J.-P. Pinty *Laboratoire d'Aerologie*
32!!
33!! MODIFICATIONS
34!! -------------
35!! Original 04/12/95
36!! J.-P. Pinty 29/11/02 add ICE4
37!! S. Riette 11/2016: new ICE3/ICE4 processes
38!!
39!-------------------------------------------------------------------------------
40!
41!* 0. DECLARATIONS
42! ------------
43!
45USE modd_tiwmx, ONLY: tiwmx_t
46IMPLICIT NONE
47!
49REAL,DIMENSION(2) :: xfsedc ! Constants for sedimentation fluxes of C
50REAL :: xgac, xgc, xgac2, xgc2 ! Gamma functions of the cloud droplet distributions:
51 ! GAMMA(XNUC+1/XALPHAC), GAMMA(XNUC),
52 ! GAMMA(XNUC2+1/XALPHAC2), GAMMA(XNUC2)
53REAL :: xrho00
54REAL :: xfsedr,xexsedr, & ! Constants for sedimentation
55 xfsedi,xexcsedi,xexrsedi, & ! fluxes of R, I, S and G
58!
59REAL :: xnu10,xalpha1,xbeta1, & ! Constants for heterogeneous
60 xnu20,xalpha2,xbeta2, & ! ice nucleation : HEN
61 xmnu0 ! mass of nucleated ice crystal
62!
63REAL :: xalpha3,xbeta3, & ! Constants for homogeneous
64 xhon ! ice nucleation : HON
65!
66REAL :: xscfac, & ! Constants for raindrop
67 x0evar,x1evar,xex0evar,xex1evar, & ! evaporation: EVA and for
68 x0depi,x2depi, & ! deposition : DEP on I,
69 x0deps,x1deps,xex0deps,xex1deps, & ! on S and
70 xrdepsred,&
73!
74REAL :: xtimauti,xtexauti,xcriauti, & ! Constants for pristine ice
75 xt0criauti,xacriauti,xbcriauti ! autoconversion : AUT
76!
77REAL :: xcolis,xcolexis, & ! Constants for snow
78 xfiaggs, & ! aggregation : AGG
80!
81REAL :: xtimautc, & ! Constants for cloud droplet
82 xcriautc ! autoconversion : AUT
83!
84REAL :: xfcaccr, & ! Constants for cloud droplet
85 xexcaccr ! accretion on raindrops : ACC
86!
87REAL :: xdcslim,xcolcs, & ! Constants for the riming of
88 xexcrimss,xcrimss, & ! the aggregates : RIM
92 xsrimcg3, & !
93 xgaminc_bound_min, & ! Min val. of Lbda_s for RIM
94 xgaminc_bound_max, & ! Max val. of Lbda_s for RIM
95 xrimintp1,xrimintp2 ! Csts for lin. interpol. of
96 ! the tab. incomplete Gamma law
97INTEGER :: ngaminc ! Number of tab. Lbda_s
98REAL, DIMENSION(:), ALLOCATABLE &
99 :: xgaminc_rim1, & ! Tab. incomplete Gamma funct.
100 xgaminc_rim2, & ! for XDS+2 and for XBS
101 xgaminc_rim4 ! and for 2+XDS+XBS-XBG
102!
103REAL :: xfraccss, & ! Constants for the accretion
104 xlbraccs1,xlbraccs2,xlbraccs3, & ! raindrops onto the aggregates
105 xfsaccrg, & ! ACC (processes RACCSS and
106 xlbsaccr1,xlbsaccr2,xlbsaccr3, & ! SACCRG)
107 xacclbdas_min, & ! Min val. of Lbda_s for ACC
108 xacclbdas_max, & ! Max val. of Lbda_s for ACC
109 xacclbdar_min, & ! Min val. of Lbda_r for ACC
110 xacclbdar_max, & ! Max val. of Lbda_r for ACC
111 xaccintp1s,xaccintp2s, & ! Csts for bilin. interpol. of
112 xaccintp1r,xaccintp2r ! Lbda_s and Lbda_r in the
113 ! XKER_RACCSS and XKER_SACCRG
114 ! tables
115INTEGER :: nacclbdas, & ! Number of Lbda_s values and
116 nacclbdar ! of Lbda_r values in the
117 ! XKER_RACCSS and XKER_SACCRG
118 ! tables
119REAL,DIMENSION(:,:), ALLOCATABLE &
120 :: xker_raccss, & ! Normalized kernel for RACCSS
121 xker_raccs, & ! Normalized kernel for RACCS
122 xker_saccrg ! Normalized kernel for SACCRG
123REAL :: xfscvmg ! Melting-conversion factor of
124 ! the aggregates
125!
126REAL :: xcolir, & ! Constants for rain contact
127 xexrcfri,xrcfri, & ! freezing : CFR
129!
130REAL :: xfcdryg, & ! Constants for the dry growth
131 xcolig,xcolexig,xfidryg, & ! of the graupeln : DRY
133 xcolsg,xcolexsg,xfsdryg, & ! processes RCDRYG
134 xlbsdryg1,xlbsdryg2,xlbsdryg3, & ! RIDRYG
135 xfrdryg, & ! RSDRYG
136 xlbrdryg1,xlbrdryg2,xlbrdryg3, & ! RRDRYG
137 xdrylbdar_min, & ! Min val. of Lbda_r for DRY
138 xdrylbdar_max, & ! Max val. of Lbda_r for DRY
139 xdrylbdas_min, & ! Min val. of Lbda_s for DRY
140 xdrylbdas_max, & ! Max val. of Lbda_s for DRY
141 xdrylbdag_min, & ! Min val. of Lbda_g for DRY
142 xdrylbdag_max, & ! Max val. of Lbda_g for DRY
143 xdryintp1r,xdryintp2r, & ! Csts for bilin. interpol. of
144 xdryintp1s,xdryintp2s, & ! Lbda_r, Lbda_s and Lbda_g in
145 xdryintp1g,xdryintp2g ! the XKER_SDRYG and XKER_RDRYG
146 ! tables
147INTEGER :: ndrylbdar, & ! Number of Lbda_r,
148 ndrylbdas, & ! of Lbda_s and
149 ndrylbdag ! of Lbda_g values in
150 ! the XKER_SDRYG and XKER_RDRYG
151 ! tables
152REAL,DIMENSION(:,:), ALLOCATABLE &
153 :: xker_sdryg, & ! Normalized kernel for SDRYG
154 xker_rdryg ! Normalized kernel for RDRYG
155!
156! addition of Hail category
157!
158REAL :: xfsedh,xexsedh ! Constants for sedimentation
159!
160!
161REAL :: x0deph,x1deph,xex0deph,xex1deph ! Constants for deposition
162!
163REAL :: xcolih, xcolexih, & ! Constants for the dry growth
164 & XCOLSH, XCOLEXSH, & ! of the hail
165 & XCOLGH, XCOLEXGH !
166!
167REAL :: xfweth,xfsweth, & ! Constants for the wet growth
168 xlbsweth1,xlbsweth2,xlbsweth3, & ! of the hailstones : WET
169 xfgweth, & ! processes RSWETH
170 xlbgweth1,xlbgweth2,xlbgweth3, & ! RGWETH
171 xfrweth, & ! RRWETH
173 xwetlbdas_min, & ! Min val. of Lbda_s for WET
174 xwetlbdas_max, & ! Max val. of Lbda_s for WET
175 xwetlbdag_min, & ! Min val. of Lbda_g for WET
176 xwetlbdag_max, & ! Max val. of Lbda_g for WET
177 xwetlbdar_min, & ! Min val. of Lbda_r for WET
178 xwetlbdar_max, & ! Max val. of Lbda_r for WET
179 xwetlbdah_min, & ! Min val. of Lbda_h for WET
180 xwetlbdah_max, & ! Max val. of Lbda_h for WET
181 xwetintp1s,xwetintp2s, & ! Csts for bilin. interpol. of
182 xwetintp1g,xwetintp2g, & ! Lbda_r, Lbda_s, Lbda_g
183 xwetintp1r,xwetintp2r, & ! and Lbda_h in
184 xwetintp1h,xwetintp2h ! the XKER_SWETH, XKER_GWETH
185 ! and XKER_RWETH tables
186INTEGER :: nwetlbdas, & ! Number of Lbda_s,
187 nwetlbdag, & ! of Lbda_g,
188 nwetlbdar, & ! of Lbda_r and
189 nwetlbdah ! of Lbda_h values in
190 ! the XKER_SWETH, XKER_GWETH
191 ! and XKER_RWETH tables
192REAL,DIMENSION(:,:), ALLOCATABLE &
193 :: xker_sweth, & ! Normalized kernel for SWETH
194 xker_gweth, & ! Normalized kernel for GWETH
195 xker_rweth ! Normalized kernel for RWETH
196REAL, DIMENSION(40) :: xfrmin ! Parmeters to modify melt and growth of graupels etc.
197!
198INTEGER, DIMENSION(:), ALLOCATABLE :: nkpk, nkmk ! Vertical indices JK+IKL and JK-IKL
199 ! (clamped to [NKTB,NKTE]) used in
200 ! the condensation routine
201!
202TYPE(tiwmx_t), POINTER :: tiwmx
203!
204LOGICAL :: lnewcoeff
205!
206END TYPE rain_ice_param_t
207!
208TYPE(rain_ice_param_t), DIMENSION(JPMODELMAX), TARGET, SAVE :: rain_ice_param_model
209TYPE(rain_ice_param_t), POINTER, SAVE :: rain_ice_paramn => null()
210!
211REAL,DIMENSION(:),POINTER :: xfsedc => null()
212REAL,DIMENSION(:),POINTER :: xfrmin => null()
213
214REAL,POINTER :: xgac => null(), &
215 xgc => null(), &
216 xgac2 => null(), &
217 xgc2 => null()
218REAL,POINTER :: xfsedr => null(), &
219 xexsedr => null(), &
220 xfsedi => null(), &
221 xexcsedi => null(), &
222 xexrsedi => null(), &
223 xfseds => null(), &
224 xexseds => null(), &
225 xfsedg => null(), &
226 xexsedg => null(), &
227 xrho00 => null(), &
228 xnu10 => null(), &
229 xalpha1 => null(), &
230 xbeta1 => null(), &
231 xnu20 => null(), &
232 xalpha2 => null(), &
233 xbeta2 => null(), &
234 xmnu0 => null(), &
235 xalpha3 => null(), &
236 xbeta3 => null(), &
237 xhon => null(), &
238 xscfac => null(), &
239 x0evar => null(), &
240 x1evar => null(), &
241 xex0evar => null(), &
242 xex1evar => null(), &
243 x0depi => null(), &
244 x2depi => null(), &
245 x0deps => null(), &
246 x1deps => null(), &
247 xex0deps => null(), &
248 xex1deps => null(), &
249 xrdepsred => null(), &
250 x0depg => null(), &
251 x1depg => null(), &
252 xex0depg => null(), &
253 xex1depg => null(), &
254 xrdepgred => null(), &
255 xtimauti => null(), &
256 xtexauti => null(), &
257 xcriauti => null(), &
258 xt0criauti => null(), &
259 xacriauti => null(), &
260 xbcriauti => null(), &
261 xcolis => null(), &
262 xcolexis => null(), &
263 xfiaggs => null(), &
264 xexiaggs => null(), &
265 xtimautc => null(), &
266 xcriautc => null(), &
267 xfcaccr => null(), &
268 xexcaccr => null(), &
269 xdcslim => null(), &
270 xcolcs => null(), &
271 xexcrimss => null(), &
272 xcrimss => null(), &
273 xexcrimsg => null(), &
274 xcrimsg => null(), &
275 xexsrimcg => null(), &
276 xsrimcg => null(), &
277 xexsrimcg2 => null(), &
278 xsrimcg2 => null(), &
279 xsrimcg3 => null(), &
280 xgaminc_bound_min => null(), &
281 xgaminc_bound_max => null(), &
282 xrimintp1 => null(), &
283 xrimintp2 => null(), &
284 xfraccss => null(), &
285 xlbraccs1 => null(), &
286 xlbraccs2 => null(), &
287 xlbraccs3 => null(), &
288 xfsaccrg => null(), &
289 xlbsaccr1 => null(), &
290 xlbsaccr2 => null(), &
291 xlbsaccr3 => null(), &
292 xacclbdas_min => null(), &
293 xacclbdas_max => null(), &
294 xacclbdar_min => null(), &
295 xacclbdar_max => null(), &
296 xaccintp1s => null(), &
297 xaccintp2s => null(), &
298 xaccintp1r => null(), &
299 xaccintp2r => null(), &
300 xfscvmg => null(), &
301 xcolir => null(), &
302 xexrcfri => null(), &
303 xrcfri => null(), &
304 xexicfrr => null(), &
305 xicfrr => null(), &
306 xfcdryg => null(), &
307 xcolig => null(), &
308 xcolexig => null(), &
309 xfidryg => null(), &
310 xfidryg2 => null(), &
311 xexfidryg => null(), &
312 xcolsg => null(), &
313 xcolexsg => null(), &
314 xfsdryg => null(), &
315 xlbsdryg1 => null(), &
316 xlbsdryg2 => null(), &
317 xlbsdryg3 => null(), &
318 xfrdryg => null(), &
319 xlbrdryg1 => null(), &
320 xlbrdryg2 => null(), &
321 xlbrdryg3 => null(), &
322 xdrylbdar_min => null(), &
323 xdrylbdar_max => null(), &
324 xdrylbdas_min => null(), &
325 xdrylbdas_max => null(), &
326 xdrylbdag_min => null(), &
327 xdrylbdag_max => null(), &
328 xdryintp1r => null(), &
329 xdryintp2r => null(), &
330 xdryintp1s => null(), &
331 xdryintp2s => null(), &
332 xdryintp1g => null(), &
333 xdryintp2g => null(), &
334 xfsedh => null(), &
335 xexsedh => null(), &
336 x0deph => null(), &
337 x1deph => null(), &
338 xex0deph => null(), &
339 xex1deph => null(), &
340 xcolih => null(), &
341 xcolexih => null(), &
342 xcolsh => null(), &
343 xcolexsh => null(), &
344 xcolgh => null(), &
345 xcolexgh => null(), &
346 xfweth => null(), &
347 xfsweth => null(), &
348 xlbsweth1 => null(), &
349 xlbsweth2 => null(), &
350 xlbsweth3 => null(), &
351 xfgweth => null(), &
352 xlbgweth1 => null(), &
353 xlbgweth2 => null(), &
354 xlbgweth3 => null(), &
355 xfrweth => null(), &
356 xlbrweth1 => null(), &
357 xlbrweth2 => null(), &
358 xlbrweth3 => null(), &
359 xwetlbdas_min => null(), &
360 xwetlbdas_max => null(), &
361 xwetlbdag_min => null(), &
362 xwetlbdag_max => null(), &
363 xwetlbdar_min => null(), &
364 xwetlbdar_max => null(), &
365 xwetlbdah_min => null(), &
366 xwetlbdah_max => null(), &
367 xwetintp1s => null(), &
368 xwetintp2s => null(), &
369 xwetintp1g => null(), &
370 xwetintp2g => null(), &
371 xwetintp1r => null(), &
372 xwetintp2r => null(), &
373 xwetintp1h => null(), &
374 xwetintp2h => null()
375
376INTEGER, POINTER :: ngaminc => null(), &
377 nacclbdas => null(), &
378 nacclbdar => null(), &
379 ndrylbdar => null(), &
380 ndrylbdas => null(), &
381 ndrylbdag => null(), &
382 nwetlbdas => null(), &
383 nwetlbdag => null(), &
384 nwetlbdar => null(), &
385 nwetlbdah => null()
386
387REAL, DIMENSION(:), POINTER :: xgaminc_rim1 => null(), &
388 xgaminc_rim2 => null(), &
389 xgaminc_rim4 => null()
390
391REAL, DIMENSION(:,:), POINTER :: xker_raccss => null(), &
392 xker_raccs => null(), &
393 xker_saccrg => null(), &
394 xker_sdryg => null(), &
395 xker_rdryg => null(), &
396 xker_sweth => null(), &
397 xker_gweth => null(), &
398 xker_rweth => null()
399
400INTEGER, DIMENSION(:), POINTER :: nkpk => null(), &
401 nkmk => null()
402
403LOGICAL, POINTER :: lnewcoeff => null()
404
405CONTAINS
406SUBROUTINE rain_ice_param_goto_model(KFROM, KTO)
407!! This subroutine associate all the pointers to the right component of
408!! the right strucuture. A value can be accessed through the structure RAIN_ICE_PARAMN
409!! or through the strucuture RAIN_ICE_PARAM_MODEL(KTO) or directly through these pointers.
410IMPLICIT NONE
411INTEGER, INTENT(IN) :: KFROM, KTO
412!
413IF(.NOT. ASSOCIATED(rain_ice_paramn, rain_ice_param_model(kto))) THEN
414 !
416 !
417 xfsedc => rain_ice_paramn%XFSEDC
418 xgac => rain_ice_paramn%XGAC
419 xgc => rain_ice_paramn%XGC
420 xgac2 => rain_ice_paramn%XGAC2
421 xgc2 => rain_ice_paramn%XGC2
422 xfrmin => rain_ice_paramn%XFRMIN
423 !
424 xfsedr => rain_ice_paramn%XFSEDR
425 xexsedr => rain_ice_paramn%XEXSEDR
426 xfsedi => rain_ice_paramn%XFSEDI
427 xexcsedi => rain_ice_paramn%XEXCSEDI
428 xexrsedi => rain_ice_paramn%XEXRSEDI
429 xfseds => rain_ice_paramn%XFSEDS
430 xexseds => rain_ice_paramn%XEXSEDS
431 xfsedg => rain_ice_paramn%XFSEDG
432 xexsedg => rain_ice_paramn%XEXSEDG
433 xrho00 => rain_ice_paramn%XRHO00
434 xnu10 => rain_ice_paramn%XNU10
435 xalpha1 => rain_ice_paramn%XALPHA1
436 xbeta1 => rain_ice_paramn%XBETA1
437 xnu20 => rain_ice_paramn%XNU20
438 xalpha2 => rain_ice_paramn%XALPHA2
439 xbeta2 => rain_ice_paramn%XBETA2
440 xmnu0 => rain_ice_paramn%XMNU0
441 xalpha3 => rain_ice_paramn%XALPHA3
442 xbeta3 => rain_ice_paramn%XBETA3
443 xhon => rain_ice_paramn%XHON
444 xscfac => rain_ice_paramn%XSCFAC
445 x0evar => rain_ice_paramn%X0EVAR
446 x1evar => rain_ice_paramn%X1EVAR
447 xex0evar => rain_ice_paramn%XEX0EVAR
448 xex1evar => rain_ice_paramn%XEX1EVAR
449 x0depi => rain_ice_paramn%X0DEPI
450 x2depi => rain_ice_paramn%X2DEPI
451 x0deps => rain_ice_paramn%X0DEPS
452 x1deps => rain_ice_paramn%X1DEPS
453 xex0deps => rain_ice_paramn%XEX0DEPS
454 xex1deps => rain_ice_paramn%XEX1DEPS
455 xrdepsred => rain_ice_paramn%XRDEPSRED
456 x0depg => rain_ice_paramn%X0DEPG
457 x1depg => rain_ice_paramn%X1DEPG
458 xex0depg => rain_ice_paramn%XEX0DEPG
459 xex1depg => rain_ice_paramn%XEX1DEPG
460 xrdepgred => rain_ice_paramn%XRDEPGRED
461 xtimauti => rain_ice_paramn%XTIMAUTI
462 xtexauti => rain_ice_paramn%XTEXAUTI
463 xcriauti => rain_ice_paramn%XCRIAUTI
464 xt0criauti => rain_ice_paramn%XT0CRIAUTI
465 xacriauti => rain_ice_paramn%XACRIAUTI
466 xbcriauti => rain_ice_paramn%XBCRIAUTI
467 xcolis => rain_ice_paramn%XCOLIS
468 xcolexis => rain_ice_paramn%XCOLEXIS
469 xfiaggs => rain_ice_paramn%XFIAGGS
470 xexiaggs => rain_ice_paramn%XEXIAGGS
471 xtimautc => rain_ice_paramn%XTIMAUTC
472 xcriautc => rain_ice_paramn%XCRIAUTC
473 xfcaccr => rain_ice_paramn%XFCACCR
474 xexcaccr => rain_ice_paramn%XEXCACCR
475 xdcslim => rain_ice_paramn%XDCSLIM
476 xcolcs => rain_ice_paramn%XCOLCS
477 xexcrimss => rain_ice_paramn%XEXCRIMSS
478 xcrimss => rain_ice_paramn%XCRIMSS
479 xexcrimsg => rain_ice_paramn%XEXCRIMSG
480 xcrimsg => rain_ice_paramn%XCRIMSG
481 xexsrimcg => rain_ice_paramn%XEXSRIMCG
482 xsrimcg => rain_ice_paramn%XSRIMCG
483 xexsrimcg2 => rain_ice_paramn%XEXSRIMCG2
484 xsrimcg2 => rain_ice_paramn%XSRIMCG2
485 xsrimcg3 => rain_ice_paramn%XSRIMCG3
486 xgaminc_bound_min => rain_ice_paramn%XGAMINC_BOUND_MIN
487 xgaminc_bound_max => rain_ice_paramn%XGAMINC_BOUND_MAX
488 xrimintp1 => rain_ice_paramn%XRIMINTP1
489 xrimintp2 => rain_ice_paramn%XRIMINTP2
490 xfraccss => rain_ice_paramn%XFRACCSS
491 xlbraccs1 => rain_ice_paramn%XLBRACCS1
492 xlbraccs2 => rain_ice_paramn%XLBRACCS2
493 xlbraccs3 => rain_ice_paramn%XLBRACCS3
494 xfsaccrg => rain_ice_paramn%XFSACCRG
495 xlbsaccr1 => rain_ice_paramn%XLBSACCR1
496 xlbsaccr2 => rain_ice_paramn%XLBSACCR2
497 xlbsaccr3 => rain_ice_paramn%XLBSACCR3
498 xacclbdas_min => rain_ice_paramn%XACCLBDAS_MIN
499 xacclbdas_max => rain_ice_paramn%XACCLBDAS_MAX
500 xacclbdar_min => rain_ice_paramn%XACCLBDAR_MIN
501 xacclbdar_max => rain_ice_paramn%XACCLBDAR_MAX
502 xaccintp1s => rain_ice_paramn%XACCINTP1S
503 xaccintp2s => rain_ice_paramn%XACCINTP2S
504 xaccintp1r => rain_ice_paramn%XACCINTP1R
505 xaccintp2r => rain_ice_paramn%XACCINTP2R
506 xfscvmg => rain_ice_paramn%XFSCVMG
507 xcolir => rain_ice_paramn%XCOLIR
508 xexrcfri => rain_ice_paramn%XEXRCFRI
509 xrcfri => rain_ice_paramn%XRCFRI
510 xexicfrr => rain_ice_paramn%XEXICFRR
511 xicfrr => rain_ice_paramn%XICFRR
512 xfcdryg => rain_ice_paramn%XFCDRYG
513 xcolig => rain_ice_paramn%XCOLIG
514 xcolexig => rain_ice_paramn%XCOLEXIG
515 xfidryg => rain_ice_paramn%XFIDRYG
516 xfidryg2 => rain_ice_paramn%XFIDRYG2
517 xexfidryg => rain_ice_paramn%XEXFIDRYG
518 xcolsg => rain_ice_paramn%XCOLSG
519 xcolexsg => rain_ice_paramn%XCOLEXSG
520 xfsdryg => rain_ice_paramn%XFSDRYG
521 xlbsdryg1 => rain_ice_paramn%XLBSDRYG1
522 xlbsdryg2 => rain_ice_paramn%XLBSDRYG2
523 xlbsdryg3 => rain_ice_paramn%XLBSDRYG3
524 xfrdryg => rain_ice_paramn%XFRDRYG
525 xlbrdryg1 => rain_ice_paramn%XLBRDRYG1
526 xlbrdryg2 => rain_ice_paramn%XLBRDRYG2
527 xlbrdryg3 => rain_ice_paramn%XLBRDRYG3
528 xdrylbdar_min => rain_ice_paramn%XDRYLBDAR_MIN
529 xdrylbdar_max => rain_ice_paramn%XDRYLBDAR_MAX
530 xdrylbdas_min => rain_ice_paramn%XDRYLBDAS_MIN
531 xdrylbdas_max => rain_ice_paramn%XDRYLBDAS_MAX
532 xdrylbdag_min => rain_ice_paramn%XDRYLBDAG_MIN
533 xdrylbdag_max => rain_ice_paramn%XDRYLBDAG_MAX
534 xdryintp1r => rain_ice_paramn%XDRYINTP1R
535 xdryintp2r => rain_ice_paramn%XDRYINTP2R
536 xdryintp1s => rain_ice_paramn%XDRYINTP1S
537 xdryintp2s => rain_ice_paramn%XDRYINTP2S
538 xdryintp1g => rain_ice_paramn%XDRYINTP1G
539 xdryintp2g => rain_ice_paramn%XDRYINTP2G
540 xfsedh => rain_ice_paramn%XFSEDH
541 xexsedh => rain_ice_paramn%XEXSEDH
542 x0deph => rain_ice_paramn%X0DEPH
543 x1deph => rain_ice_paramn%X1DEPH
544 xex0deph => rain_ice_paramn%XEX0DEPH
545 xex1deph => rain_ice_paramn%XEX1DEPH
546 xcolih => rain_ice_paramn%XCOLIH
547 xcolexih => rain_ice_paramn%XCOLEXIH
548 xcolsh => rain_ice_paramn%XCOLSH
549 xcolexsh => rain_ice_paramn%XCOLEXSH
550 xcolgh => rain_ice_paramn%XCOLGH
551 xcolexgh => rain_ice_paramn%XCOLEXGH
552 xfweth => rain_ice_paramn%XFWETH
553 xfsweth => rain_ice_paramn%XFSWETH
554 xlbsweth1 => rain_ice_paramn%XLBSWETH1
555 xlbsweth2 => rain_ice_paramn%XLBSWETH2
556 xlbsweth3 => rain_ice_paramn%XLBSWETH3
557 xfgweth => rain_ice_paramn%XFGWETH
558 xlbgweth1 => rain_ice_paramn%XLBGWETH1
559 xlbgweth2 => rain_ice_paramn%XLBGWETH2
560 xlbgweth3 => rain_ice_paramn%XLBGWETH3
561 xfrweth => rain_ice_paramn%XFRWETH
562 xlbrweth1 => rain_ice_paramn%XLBRWETH1
563 xlbrweth2 => rain_ice_paramn%XLBRWETH2
564 xlbrweth3 => rain_ice_paramn%XLBRWETH3
565 xwetlbdas_min => rain_ice_paramn%XWETLBDAS_MIN
566 xwetlbdas_max => rain_ice_paramn%XWETLBDAS_MAX
567 xwetlbdag_min => rain_ice_paramn%XWETLBDAG_MIN
568 xwetlbdag_max => rain_ice_paramn%XWETLBDAG_MAX
569 xwetlbdar_min => rain_ice_paramn%XWETLBDAR_MIN
570 xwetlbdar_max => rain_ice_paramn%XWETLBDAR_MAX
571 xwetlbdah_min => rain_ice_paramn%XWETLBDAH_MIN
572 xwetlbdah_max => rain_ice_paramn%XWETLBDAH_MAX
573 xwetintp1s => rain_ice_paramn%XWETINTP1S
574 xwetintp2s => rain_ice_paramn%XWETINTP2S
575 xwetintp1g => rain_ice_paramn%XWETINTP1G
576 xwetintp2g => rain_ice_paramn%XWETINTP2G
577 xwetintp1r => rain_ice_paramn%XWETINTP1R
578 xwetintp2r => rain_ice_paramn%XWETINTP2R
579 xwetintp1h => rain_ice_paramn%XWETINTP1H
580 xwetintp2h => rain_ice_paramn%XWETINTP2H
581 !
582 ngaminc => rain_ice_paramn%NGAMINC
583 nacclbdas => rain_ice_paramn%NACCLBDAS
584 nacclbdar => rain_ice_paramn%NACCLBDAR
585 ndrylbdar => rain_ice_paramn%NDRYLBDAR
586 ndrylbdas => rain_ice_paramn%NDRYLBDAS
587 ndrylbdag => rain_ice_paramn%NDRYLBDAG
588 nwetlbdas => rain_ice_paramn%NWETLBDAS
589 nwetlbdag => rain_ice_paramn%NWETLBDAG
590 nwetlbdar => rain_ice_paramn%NWETLBDAR
591 nwetlbdah => rain_ice_paramn%NWETLBDAH
592 !
593 lnewcoeff => rain_ice_paramn%LNEWCOEFF
594 !
595 CALL helper1(xgaminc_rim1, rain_ice_paramn%XGAMINC_RIM1)
596 CALL helper1(xgaminc_rim2, rain_ice_paramn%XGAMINC_RIM2)
597 CALL helper1(xgaminc_rim4, rain_ice_paramn%XGAMINC_RIM4)
598 CALL helper2(xker_raccss, rain_ice_paramn%XKER_RACCSS)
599 CALL helper2(xker_raccs, rain_ice_paramn%XKER_RACCS)
600 CALL helper2(xker_saccrg, rain_ice_paramn%XKER_SACCRG)
601 CALL helper2(xker_sdryg, rain_ice_paramn%XKER_SDRYG)
602 CALL helper2(xker_rdryg, rain_ice_paramn%XKER_RDRYG)
603 CALL helper2(xker_sweth, rain_ice_paramn%XKER_SWETH)
604 CALL helper2(xker_gweth, rain_ice_paramn%XKER_GWETH)
605 CALL helper2(xker_rweth, rain_ice_paramn%XKER_RWETH)
606 CALL helper3(nkpk, rain_ice_paramn%NKPK)
607 CALL helper3(nkmk, rain_ice_paramn%NKMK)
608
609ENDIF
610END SUBROUTINE rain_ice_param_goto_model
611!
612SUBROUTINE helper1(XPT, XARR)
613 IMPLICIT NONE
614 REAL, POINTER, DIMENSION(:), INTENT(INOUT) :: XPT
615 REAL, DIMENSION(:), ALLOCATABLE, TARGET, INTENT(INOUT) :: XARR
616 IF(ALLOCATED(xarr)) THEN
617 xpt => xarr
618 ELSE
619 xpt => null()
620 ENDIF
621END SUBROUTINE helper1
622!
623SUBROUTINE helper2(XPT, XARR)
624 IMPLICIT NONE
625 REAL, POINTER, DIMENSION(:,:), INTENT(INOUT) :: XPT
626 REAL, DIMENSION(:,:), ALLOCATABLE, TARGET, INTENT(INOUT) :: XARR
627 IF(ALLOCATED(xarr)) THEN
628 xpt => xarr
629 ELSE
630 xpt => null()
631 ENDIF
632END SUBROUTINE helper2
633!
634SUBROUTINE helper3(KPT, KARR)
635 IMPLICIT NONE
636 INTEGER, POINTER, DIMENSION(:), INTENT(INOUT) :: KPT
637 INTEGER, DIMENSION(:), ALLOCATABLE, TARGET, INTENT(INOUT) :: KARR
638 IF(ALLOCATED(karr)) THEN
639 kpt => karr
640 ELSE
641 kpt => null()
642 ENDIF
643END SUBROUTINE helper3
644!
645SUBROUTINE rain_ice_param_allocate(HNAME, KDIM1, KDIM2)
646 IMPLICIT NONE
647 CHARACTER(LEN=*), INTENT(IN) :: HNAME
648 INTEGER, INTENT(IN) :: KDIM1
649 INTEGER, OPTIONAL, INTENT(IN) :: KDIM2
650
651 SELECT CASE(trim(hname))
652 !1D arrays
653 CASE('XGAMINC_RIM1')
654 ALLOCATE(rain_ice_paramn%XGAMINC_RIM1(kdim1))
655 xgaminc_rim1 => rain_ice_paramn%XGAMINC_RIM1
656 CASE('XGAMINC_RIM2')
657 ALLOCATE(rain_ice_paramn%XGAMINC_RIM2(kdim1))
658 xgaminc_rim2 => rain_ice_paramn%XGAMINC_RIM2
659 CASE('XGAMINC_RIM4')
660 ALLOCATE(rain_ice_paramn%XGAMINC_RIM4(kdim1))
661 xgaminc_rim4 => rain_ice_paramn%XGAMINC_RIM4
662 CASE('NKPK')
663 ALLOCATE(rain_ice_paramn%NKPK(kdim1))
664 nkpk => rain_ice_paramn%NKPK
665 CASE('NKMK')
666 ALLOCATE(rain_ice_paramn%NKMK(kdim1))
667 nkmk => rain_ice_paramn%NKMK
668 !
669 !2D arrays
670 CASE('XKER_RACCSS')
671 ALLOCATE(rain_ice_paramn%XKER_RACCSS(kdim1, kdim2))
672 xker_raccss=> rain_ice_paramn%XKER_RACCSS
673 CASE('XKER_RACCS')
674 ALLOCATE(rain_ice_paramn%XKER_RACCS(kdim1, kdim2))
675 xker_raccs=> rain_ice_paramn%XKER_RACCS
676 CASE('XKER_SACCRG')
677 ALLOCATE(rain_ice_paramn%XKER_SACCRG(kdim1, kdim2))
678 xker_saccrg=> rain_ice_paramn%XKER_SACCRG
679 CASE('XKER_SDRYG')
680 ALLOCATE(rain_ice_paramn%XKER_SDRYG(kdim1, kdim2))
681 xker_sdryg=> rain_ice_paramn%XKER_SDRYG
682 CASE('XKER_RDRYG')
683 ALLOCATE(rain_ice_paramn%XKER_RDRYG(kdim1, kdim2))
684 xker_rdryg=> rain_ice_paramn%XKER_RDRYG
685 CASE('XKER_SWETH')
686 ALLOCATE(rain_ice_paramn%XKER_SWETH(kdim1, kdim2))
687 xker_sweth=> rain_ice_paramn%XKER_SWETH
688 CASE('XKER_GWETH')
689 ALLOCATE(rain_ice_paramn%XKER_GWETH(kdim1, kdim2))
690 xker_gweth=> rain_ice_paramn%XKER_GWETH
691 CASE('XKER_RWETH')
692 ALLOCATE(rain_ice_paramn%XKER_RWETH(kdim1, kdim2))
693 xker_rweth=> rain_ice_paramn%XKER_RWETH
694 END SELECT
695END SUBROUTINE rain_ice_param_allocate
696!
698 IMPLICIT NONE
699 xgaminc_rim1=>null()
700 DEALLOCATE(rain_ice_paramn%XGAMINC_RIM1)
701 xgaminc_rim2=>null()
702 DEALLOCATE(rain_ice_paramn%XGAMINC_RIM2)
703 nkpk=>null()
704 DEALLOCATE(rain_ice_paramn%NKPK)
705 nkmk=>null()
706 DEALLOCATE(rain_ice_paramn%NKMK)
707 xker_raccss=>null()
708 DEALLOCATE(rain_ice_paramn%XKER_RACCSS)
709 xker_raccs=>null()
710 DEALLOCATE(rain_ice_paramn%XKER_RACCS)
711 xker_saccrg=>null()
712 DEALLOCATE(rain_ice_paramn%XKER_SACCRG)
713 xker_sdryg=>null()
714 DEALLOCATE(rain_ice_paramn%XKER_SDRYG)
715 xker_rdryg=>null()
716 DEALLOCATE(rain_ice_paramn%XKER_RDRYG)
717END SUBROUTINE rain_ice_param_deallocate
718!
719END MODULE modd_rain_ice_param_n
integer, parameter jpmodelmax
subroutine helper2(xpt, xarr)
real, dimension(:), pointer xgaminc_rim1
real, dimension(:,:), pointer xker_rdryg
real, dimension(:), pointer xfrmin
real, dimension(:,:), pointer xker_rweth
real, dimension(:,:), pointer xker_raccss
type(rain_ice_param_t), pointer, save rain_ice_paramn
real, dimension(:,:), pointer xker_sweth
real, dimension(:,:), pointer xker_sdryg
real, dimension(:), pointer xgaminc_rim2
subroutine helper3(kpt, karr)
subroutine rain_ice_param_allocate(hname, kdim1, kdim2)
real, dimension(:,:), pointer xker_saccrg
integer, dimension(:), pointer nkpk
type(rain_ice_param_t), dimension(jpmodelmax), target, save rain_ice_param_model
real, dimension(:), pointer xgaminc_rim4
subroutine helper1(xpt, xarr)
real, dimension(:,:), pointer xker_raccs
real, dimension(:,:), pointer xker_gweth
real, dimension(:), pointer xfsedc
subroutine rain_ice_param_goto_model(kfrom, kto)
integer, dimension(:), pointer nkmk
type(tiwmx_t), target, save tiwmx