PHYEX 0.9.5
PHYsique EXternalisée
Loading...
Searching...
No Matches
modd_turbn.F90
Go to the documentation of this file.
1!MNH_LIC Copyright 1995-2024 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! ##################
8
9!$ACDC methods
10
11! ##################
12!> @file
13!!**** *MODD_TURB$n* - declaration of turbulence scheme free parameters
14!!
15!! PURPOSE
16!! -------
17! The purpose of this declarative module is to declare the
18! variables that may be set by namelist for the turbulence scheme
19!
20!!
21!!** IMPLICIT ARGUMENTS
22!! ------------------
23!! None
24!!
25!! REFERENCE
26!! ---------
27!! Book2 of documentation of Meso-NH (module MODD_PARAMn)
28!!
29!! AUTHOR
30!! ------
31!! J. Cuxart and J. Stein * I.N.M. and Meteo France*
32!!
33!! MODIFICATIONS
34!! -------------
35!! Original January 9, 1995
36!! J.Cuxart February 15, 1995 add the switches for diagnostic storages
37!! J.M. Carriere May 15, 1995 add the subgrid condensation
38!! M. Tomasini Jul 05, 2001 add the subgrid autoconversion
39!! P. Bechtold Feb 11, 2002 add switch for Sigma_s computation
40!! P. Jabouille Apr 4, 2002 add switch for Sigma_s convection
41!! V. Masson Nov 13 2002 add switch for SBL lengths
42!! May 2006 Remove KEPS
43!! C.Lac Nov 2014 add terms of TKE production for LES diag
44!! Philippe Wautelet: 05/2016-04/2018: new data structures and calls for I/O
45!! D. Ricard May 2021 add the switches for Leonard terms
46!! JL Redelsperger 03/2021 Add O-A flux for auto-coupled LES case
47!! S. Riette June 2023: add LSMOOTH_PRANDTL, XMINSIGS and XBL89EXP/XUSRBL89
48!! A. Marcel Jan 2025: EDMF contribution to dynamic TKE production
49!!
50!-------------------------------------------------------------------------------
51!
52!* 0. DECLARATIONS
53! ------------
54!
56IMPLICIT NONE
57!
58! Index indicators for turbulence SPP
59INTEGER, PARAMETER :: nctp=1
60INTEGER, PARAMETER :: nctv=2
61INTEGER, PARAMETER :: ncht1=3
62INTEGER, PARAMETER :: ncht2=4
63INTEGER, PARAMETER :: ncshf=5
64INTEGER, PARAMETER :: nchf=6
65INTEGER, PARAMETER :: ncpr3=7
66INTEGER, PARAMETER :: ncpr4=8
67INTEGER, PARAMETER :: ncpr5=9
68INTEGER, PARAMETER :: ncep=10
69INTEGER, PARAMETER :: ncmfs=11
70INTEGER, PARAMETER :: nced=12
71INTEGER, PARAMETER :: nbl89exp=13
72INTEGER, PARAMETER :: nusrbl89=14
73INTEGER, PARAMETER :: nturb_s=14
74
76!
77!
78 REAL :: ximpl !< implicitness degree for the vertical terms of the turbulence scheme
79 REAL :: xtkemin !< mimimum value for the TKE
80 REAL :: xced !< Constant for dissipation of Tke
81 REAL :: xctp !< Constant for temperature and vapor pressure-correlations
82 REAL :: xcshf !< constant for the sensible heat flux
83 REAL :: xchf !< constant for the humidity flux
84 REAL :: xctv !< constant for the temperature variance
85 REAL :: xchv !< constant for the humidity variance
86 REAL :: xcht1 !< first ct. for the humidity-temperature correlation
87 REAL :: xcht2 !< second ct. for the humidity-temperature correlation
88 REAL :: xcpr1 !< first ct. for the turbulent Prandtl numbers
89 REAL :: xcadap !< Coefficient for ADAPtative mixing length
90 CHARACTER (LEN=4) :: cturblen !< type of length used for the closure:
91 !! 'BL89' Bougeault and Lacarrere scheme;
92 !! 'DELT' length = ( volum) ** 1/3
93 CHARACTER (LEN=4) :: cturbdim !< dimensionality of the turbulence scheme:
94 !! '1DIM' for purely vertical computations;
95 !! '3DIM' for computations in the 3 directions
96 LOGICAL :: lturb_flx !< logical switch for the storage of all the turbulent fluxes
97 LOGICAL :: lturb_diag !< logical switch for the storage of some turbulence related diagnostics
98 LOGICAL :: lsig_conv !< Switch for computing Sigma_s due to convection
99!
100 LOGICAL :: lharat !< if true RACMO turbulence is used
101 LOGICAL :: lbl89top !< if true modification in BL89 at PBL top
102 LOGICAL :: lbl89exp !< if true true exposant of BL89 paper
103 LOGICAL :: lrmc01 !< Switch for computing separate mixing and dissipative length in the SBL
104 !! according to Redelsperger, Mahe & Carlotti 2001
105 CHARACTER(LEN=4) :: ctom !< type of Third Order Moments:
106 !! 'NONE' none;
107 !! 'TM06' Tomas Masson 2006
108
109! REAL, DIMENSION(:,:), POINTER :: XBL_DEPTH=>NULL() ! BL depth for TOMS computations
110! REAL, DIMENSION(:,:), POINTER :: XSBL_DEPTH=>NULL()! SurfaceBL depth for RMC01 computations
111! REAL, DIMENSION(:,:,:), POINTER :: XWTHVMF=>NULL()! Mass Flux vert. transport of buoyancy
112 REAL, DIMENSION(:,:,:), POINTER :: xdyp=>null() !< Dynamical production of Kinetic energy
113 REAL, DIMENSION(:,:,:), POINTER :: xthp=>null() !< Thermal production of Kinetic energy
114 REAL, DIMENSION(:,:,:), POINTER :: xtr=>null() !< Transport production of Kinetic energy
115 REAL, DIMENSION(:,:,:), POINTER :: xdiss=>null() !< Dissipation of Kinetic energy
116 REAL, DIMENSION(:,:,:), POINTER :: xlem=>null() !< Mixing length
117 REAL, DIMENSION(:,:,:), POINTER :: xssufl_c=>null() !< O-A interface flux for u
118 REAL, DIMENSION(:,:,:), POINTER :: xssvfl_c=>null() !< O-A interface flux for v
119 REAL, DIMENSION(:,:,:), POINTER :: xsstfl_c=>null() !< O-A interface flux for theta
120 REAL, DIMENSION(:,:,:), POINTER :: xssrfl_c=>null() !< O-A interface flux for vapor
121 LOGICAL :: lleonard !< logical switch for the computation of the Leornard Terms
122 REAL :: xcoefhgradthl !< coeff applied to thl contribution
123 REAL :: xcoefhgradrm !< coeff applied to mixing ratio contribution
124 REAL :: xalthgrad !< altitude from which to apply the Leonard terms
125 LOGICAL :: lgoger ! < logical switch for the computation of the Goger Terms
126 REAL :: xsmag ! < dimensionless Smagorinsky constant
127 REAL :: xcldthold !< cloud threshold to apply the Leonard terms:
128 !! negative value to apply everywhere;
129 !! 0.000001 applied only inside the clouds ri+rc > 10**-6 kg/kg
130 REAL :: xlini !< initial value for BL mixing length
131 LOGICAL :: lrotate_wind !< .TRUE. to rotate wind components
132 LOGICAL :: ltkeminturb !< set a minimum value for the TKE in the turbulence scheme
133 LOGICAL :: lprojqiturb !< project the rt tendency on rc/ri
134 LOGICAL :: lsmooth_prandtl !< .TRUE. to smooth prandtl functions
135 REAL :: xminsigs !< minimum value for SIGS computed by the turbulence scheme
136 REAL :: xbl89exp, xusrbl89 !< exponent on final BL89 length
137 INTEGER :: nturbsplit !<number of time-splitting for turb_hor
138 LOGICAL :: lcloudmodiflm !< .TRUE. to activate modification of mixing length in clouds
139 CHARACTER(LEN=4) :: cturblen_cloud !< type of length in the clouds
140 ! 'DEAR' Deardorff mixing length
141 ! 'BL89' Bougeault and Lacarrere scheme
142 ! 'DELT' length = ( volum) ** 1/3
143REAL :: xcoef_ampl_sat !< saturation of the amplification coefficient
144REAL :: xcei_min !< minimum threshold for the instability index CEI
145 !(beginning of the amplification)
146REAL :: xcei_max !< maximum threshold for the instability index CEI
147 !(beginning of the saturation of the amplification)
148REAL, DIMENSION(:,:,:), POINTER :: xcei !< Cloud Entrainment instability index to emphasize localy
149 ! turbulent fluxes
150 LOGICAL :: lturb_precip ! switch to apply turbulence to precipitating hydrometeor mixing ratios
151 LOGICAL :: ldynmf ! true to take into account a dynamical TKE production from EDMF
152 LOGICAL :: lthermmf ! true to take into account a buoyancy TKE production from EDMF
153 LOGICAL :: llemarie21 ! true to use Lemarie et al. 2021 constant in DELT/DEAR mixing length
154
155!
156END TYPE turb_t
157
158TYPE(turb_t), DIMENSION(JPMODELMAX), TARGET, SAVE :: turb_model
159TYPE(turb_t), POINTER, SAVE :: turbn => null()
160!
161REAL, POINTER :: ximpl=>null()
162REAL, POINTER :: xtkemin=>null()
163REAL, POINTER :: xced=>null()
164REAL, POINTER :: xctp=>null()
165REAL, POINTER :: xcshf=>null()
166REAL, POINTER :: xchf=>null()
167REAL, POINTER :: xctv=>null()
168REAL, POINTER :: xchv=>null()
169REAL, POINTER :: xcht1=>null()
170REAL, POINTER :: xcht2=>null()
171REAL, POINTER :: xcpr1=>null()
172REAL, POINTER :: xcadap=>null()
173CHARACTER (LEN=4), POINTER :: cturblen=>null()
174CHARACTER (LEN=4), POINTER :: cturbdim=>null()
175LOGICAL, POINTER :: lturb_flx=>null()
176LOGICAL, POINTER :: lturb_diag=>null()
177LOGICAL, POINTER :: lsig_conv=>null()
178LOGICAL, POINTER :: lrmc01=>null()
179LOGICAL, POINTER :: lharat=>null()
180LOGICAL, POINTER :: lbl89top=>null()
181LOGICAL, POINTER :: lbl89exp=>null()
182CHARACTER(LEN=4),POINTER :: ctom=>null()
183REAL, DIMENSION(:,:), POINTER :: xbl_depth=>null()
184REAL, DIMENSION(:,:), POINTER :: xsbl_depth=>null()
185REAL, DIMENSION(:,:,:), POINTER :: xwthvmf=>null()
186REAL, DIMENSION(:,:,:), POINTER :: xwumf=>null()
187REAL, DIMENSION(:,:,:), POINTER :: xwvmf=>null()
188REAL, DIMENSION(:,:,:), POINTER :: xdyp=>null()
189REAL, DIMENSION(:,:,:), POINTER :: xthp=>null()
190REAL, DIMENSION(:,:,:), POINTER :: xtr=>null()
191REAL, DIMENSION(:,:,:), POINTER :: xdiss=>null()
192REAL, DIMENSION(:,:,:), POINTER :: xlem=>null()
193REAL, DIMENSION(:,:,:), POINTER :: xssufl_c=>null()
194REAL, DIMENSION(:,:,:), POINTER :: xssvfl_c=>null()
195REAL, DIMENSION(:,:,:), POINTER :: xsstfl_c=>null()
196REAL, DIMENSION(:,:,:), POINTER :: xssrfl_c=>null()
197LOGICAL, POINTER :: lleonard=>null()
198REAL, POINTER :: xcoefhgradthl=>null()
199REAL, POINTER :: xcoefhgradrm=>null()
200REAL, POINTER :: xalthgrad=>null()
201LOGICAL, POINTER :: lgoger=>null()
202REAL, POINTER :: xsmag=>null()
203REAL, POINTER :: xcldthold=>null()
204REAL, POINTER :: xlini=>null()
205LOGICAL, POINTER :: lrotate_wind=>null()
206LOGICAL, POINTER :: ltkeminturb=>null()
207LOGICAL, POINTER :: lprojqiturb=>null()
208LOGICAL, POINTER :: lsmooth_prandtl=>null()
209REAL, POINTER :: xminsigs=>null()
210REAL, POINTER :: xbl89exp=>null(), xusrbl89=>null()
211INTEGER, POINTER :: nturbsplit=>null()
212LOGICAL, POINTER :: lcloudmodiflm=>null()
213CHARACTER(LEN=4), POINTER :: cturblen_cloud=>null()
214REAL, POINTER :: xcoef_ampl_sat=>null()
215REAL, POINTER :: xcei_min=>null()
216REAL, POINTER :: xcei_max =>null()
217REAL, DIMENSION(:,:,:), POINTER :: xcei=>null()
218LOGICAL, POINTER :: lturb_precip=>null()
219LOGICAL, POINTER :: ldynmf=>null()
220LOGICAL, POINTER :: lthermmf=>null()
221LOGICAL, POINTER :: llemarie21=>null()
222!
223NAMELIST/nam_turbn/ximpl,cturblen,cturbdim,lturb_flx,lturb_diag, &
232!
233!-------------------------------------------------------------------------------
234!
235CONTAINS
236
237SUBROUTINE turb_goto_model(KFROM, KTO)
238!! This subroutine associate all the pointers to the right component of
239!! the right strucuture. A value can be accessed through the structure TURBN
240!! or through the strucuture TURB_MODEL(KTO) or directly through these pointers.
241IMPLICIT NONE
242INTEGER, INTENT(IN) :: KFROM, KTO
243!
244IF(.NOT. ASSOCIATED(turbn, turb_model(kto))) THEN
245!
246turbn => turb_model(kto)
247!
248! Save current state for allocated arrays
249!
250IF(kfrom>0 .AND. kfrom<=jpmodelmax) THEN
251 !TURB_MODEL(KFROM)%XBL_DEPTH=>XBL_DEPTH !Done in FIELDLIST_GOTO_MODEL
252 !TURB_MODEL(KFROM)%XSBL_DEPTH=>XSBL_DEPTH !Done in FIELDLIST_GOTO_MODEL
253 !TURB_MODEL(KFROM)%XWTHVMF=>XWTHVMF !Done in FIELDLIST_GOTO_MODEL
254 turb_model(kfrom)%XDYP=>xdyp
255 turb_model(kfrom)%XTHP=>xthp
256 turb_model(kfrom)%XTR=>xtr
257 turb_model(kfrom)%XDISS=>xdiss
258 turb_model(kfrom)%XLEM=>xlem
259 turb_model(kfrom)%XSSUFL_C=>xssufl_c
260 turb_model(kfrom)%XSSVFL_C=>xssvfl_c
261 turb_model(kfrom)%XSSTFL_C=>xsstfl_c
262 turb_model(kfrom)%XSSRFL_C=>xssrfl_c
263 turb_model(kfrom)%XCEI=>xcei
264ENDIF
265!
266! Current model is set to model KTO
267ximpl=>turb_model(kto)%XIMPL
268xtkemin=>turb_model(kto)%XTKEMIN
269xced=>turb_model(kto)%XCED
270xctp=>turb_model(kto)%XCTP
271xcshf=>turb_model(kto)%XCSHF
272xchf=>turb_model(kto)%XCHF
273xctv=>turb_model(kto)%XCTV
274xchv=>turb_model(kto)%XCHV
275xcht1=>turb_model(kto)%XCHT1
276xcht2=>turb_model(kto)%XCHT2
277xcpr1=>turb_model(kto)%XCPR1
278xcadap=>turb_model(kto)%XCADAP
279cturblen=>turb_model(kto)%CTURBLEN
280cturbdim=>turb_model(kto)%CTURBDIM
281lturb_flx=>turb_model(kto)%LTURB_FLX
282lharat=>turb_model(kto)%LHARAT
283lbl89top=>turb_model(kto)%LBL89TOP
284lbl89exp=>turb_model(kto)%LBL89EXP
285lturb_diag=>turb_model(kto)%LTURB_DIAG
286lsig_conv=>turb_model(kto)%LSIG_CONV
287lrmc01=>turb_model(kto)%LRMC01
288ctom=>turb_model(kto)%CTOM
289!XBL_DEPTH=>TURB_MODEL(KTO)%XBL_DEPTH !Done in FIELDLIST_GOTO_MODEL
290!XSBL_DEPTH=>TURB_MODEL(KTO)%XSBL_DEPTH !Done in FIELDLIST_GOTO_MODEL
291!XWTHVMF=>TURB_MODEL(KTO)%XWTHVMF !Done in FIELDLIST_GOTO_MODEL
292xdyp=>turb_model(kto)%XDYP
293xthp=>turb_model(kto)%XTHP
294xtr=>turb_model(kto)%XTR
295xdiss=>turb_model(kto)%XDISS
296xlem=>turb_model(kto)%XLEM
297xssufl_c=>turb_model(kto)%XSSUFL_C
298xssvfl_c=>turb_model(kto)%XSSVFL_C
299xsstfl_c=>turb_model(kto)%XSSTFL_C
300xssrfl_c=>turb_model(kto)%XSSRFL_C
301lleonard=>turb_model(kto)%LLEONARD
302xcoefhgradthl=>turb_model(kto)%XCOEFHGRADTHL
303xcoefhgradrm=>turb_model(kto)%XCOEFHGRADRM
304xalthgrad=>turb_model(kto)%XALTHGRAD
305lgoger=>turb_model(kto)%LGOGER
306xsmag=>turb_model(kto)%XSMAG
307xcldthold=>turb_model(kto)%XCLDTHOLD
308xlini=>turb_model(kto)%XLINI
309lrotate_wind=>turb_model(kto)%LROTATE_WIND
310ltkeminturb=>turb_model(kto)%LTKEMINTURB
311lprojqiturb=>turb_model(kto)%LPROJQITURB
312lsmooth_prandtl=>turb_model(kto)%LSMOOTH_PRANDTL
313xminsigs=>turb_model(kto)%XMINSIGS
314xbl89exp=>turb_model(kto)%XBL89EXP
315xusrbl89=>turb_model(kto)%XUSRBL89
316nturbsplit=>turb_model(kto)%NTURBSPLIT
317lcloudmodiflm=>turb_model(kto)%LCLOUDMODIFLM
318cturblen_cloud=>turb_model(kto)%CTURBLEN_CLOUD
319xcoef_ampl_sat=>turb_model(kto)%XCOEF_AMPL_SAT
320xcei_min=>turb_model(kto)%XCEI_MIN
321xcei_max =>turb_model(kto)%XCEI_MAX
322xcei=>turb_model(kto)%XCEI
323lturb_precip=>turb_model(kto)%LTURB_PRECIP
324ldynmf=>turb_model(kto)%LDYNMF
325lthermmf=>turb_model(kto)%LTHERMMF
326llemarie21=>turb_model(kto)%LLEMARIE21
327!
328ENDIF
329!
330END SUBROUTINE turb_goto_model
331
332SUBROUTINE turbn_init(HPROGRAM, TFILENAM, LDNEEDNAM, KLUOUT, &
333 &LDDEFAULTVAL, LDREADNAM, LDCHECK, KPRINT)
334!!*** *TURBN_INIT* - Code needed to initialize the MODD_TURB_n module
335!!
336!!* PURPOSE
337!! -------
338!! Sets the default values, reads the namelist, performs the checks and prints
339!!
340!!* METHOD
341!! ------
342!! 0. Declarations
343!! 1. Declaration of arguments
344!! 2. Declaration of local variables
345!! 1. Default values
346!! 2. Namelist
347!! 3. Checks
348!! 4. Prints
349!!
350!! AUTHOR
351!! ------
352!! S. Riette
353!!
354!! MODIFICATIONS
355!! -------------
356!! Original Feb 2023
357!-------------------------------------------------------------------------------
358!
359!* 0. DECLARATIONS
360! ---------------
361!
364USE modd_parameters, ONLY: xundef
365USE modd_io, ONLY: tfiledata
366
367!
368IMPLICIT NONE
369!
370!* 0.1. Declaration of arguments
371! ------------------------
372!
373CHARACTER(LEN=6), INTENT(IN) :: HPROGRAM !< Name of the calling program
374TYPE(tfiledata), INTENT(IN) :: TFILENAM !< Namelist file
375LOGICAL, INTENT(IN) :: LDNEEDNAM !< True to abort if namelist is absent
376INTEGER, INTENT(IN) :: KLUOUT !< Logical unit for outputs
377LOGICAL, OPTIONAL, INTENT(IN) :: LDDEFAULTVAL !< Must we initialize variables with default values (defaults to .TRUE.)
378LOGICAL, OPTIONAL, INTENT(IN) :: LDREADNAM !< Must we read the namelist (defaults to .TRUE.)
379LOGICAL, OPTIONAL, INTENT(IN) :: LDCHECK !< Must we perform some checks on values (defaults to .TRUE.)
380INTEGER, OPTIONAL, INTENT(IN) :: KPRINT !< Print level (defaults to 0): 0 for no print, 1 to safely print namelist,
381 !! 2 to print informative messages
382!
383!* 0.2 Declaration of local variables
384! ------------------------------
385!
386LOGICAL :: LLDEFAULTVAL, LLREADNAM, LLCHECK, LLFOUND
387INTEGER :: IPRINT
388
389lldefaultval=.true.
390llreadnam=.true.
391llcheck=.true.
392iprint=0
393IF(PRESENT(lddefaultval)) lldefaultval=lddefaultval
394IF(PRESENT(ldreadnam )) llreadnam =ldreadnam
395IF(PRESENT(ldcheck )) llcheck =ldcheck
396IF(PRESENT(kprint )) iprint =kprint
397!
398!* 1. DEFAULT VALUES
399! -----------------
400!
401IF(lldefaultval) THEN
402 !NOTES ON GENERAL DEFAULTS AND MODEL-SPECIFIC DEFAULTS :
403 !- General default values *MUST* remain unchanged.
404 !- To change the default value for a given application,
405 ! an "IF(HPROGRAM=='...')" condition must be used.
406
407 ximpl = 1.
408 xtkemin = 0.01
409 xced = xundef
410 xctp = xundef
411 xcadap = 0.5
412 cturblen = 'BL89'
413 cturbdim = '1DIM'
414 lturb_flx =.false.
415 lturb_diag=.false.
416 lsig_conv =.false.
417 lrmc01 =.false.
418 ctom ='NONE'
419 lleonard =.false.
420 xcoefhgradthl = 1.0
421 xcoefhgradrm = 1.0
422 xalthgrad = 2000.0
423 lgoger=.false.
424 xsmag=0.20
425 xcldthold = -1.0
426 xlini=0.1 !old value: 10.
427 lharat=.false.
428 lbl89top=.false.
429 lbl89exp=.true.
430 lrotate_wind=.false.
431 ltkeminturb=.true.
432 lprojqiturb=.true.
433 lsmooth_prandtl=.true.
434 xminsigs=0.
435 nturbsplit=1
436 lcloudmodiflm = .false.
437 cturblen_cloud = 'DELT'
438 xcoef_ampl_sat = 5.
439 xcei_min = 0.001e-06
440 xcei_max = 0.01e-06
441 lturb_precip =.false.
442 ldynmf = .false.
443 lthermmf = .true.
444 llemarie21 = .true.
445 !
446 IF(hprogram=='AROME') THEN
447 xtkemin=1.e-6
448 xlini=0.
449 lprojqiturb=.false.
450 lsmooth_prandtl=.false.
451 lbl89exp=.false.
452 ELSEIF(hprogram=='MESONH') THEN
453 xtkemin=1.e-6
454 lrotate_wind=.true.
455 ltkeminturb=.false.
456 xminsigs=1.e-12
457 ELSEIF(hprogram=='LMDZ') THEN
458 xtkemin=1.e-6
459 xlini=0.
460 ENDIF
461ENDIF
462!
463!* 2. NAMELIST
464! -----------
465!
466IF(llreadnam) THEN
467 CALL posnam_phy(tfilenam, 'NAM_TURBN', ldneednam, llfound)
468 IF(llfound) READ(unit=tfilenam%NLU, nml=nam_turbn)
469ENDIF
470!
471!* 3. CHECKS
472! ---------
473!
474IF(llcheck) THEN
475 CALL check_nam_val_char(kluout, 'CTURBDIM', cturbdim, '1DIM', '3DIM')
476 CALL check_nam_val_char(kluout, 'CTURBLEN', cturblen, 'DELT', 'BL89', 'RM17', 'DEAR', 'BLKR', 'HM21')
477 CALL check_nam_val_char(kluout, 'CTOM', ctom, 'NONE', 'TM06')
478 CALL check_nam_val_char(kluout, 'CTURBLEN_CLOUD', cturblen_cloud, 'DELT', 'BL89', 'RM17', 'DEAR', 'BLKR', 'HM21')
479
480ENDIF
481!
482!* 3. PRINTS
483! ---------
484!
485IF(iprint>=1) THEN
486 WRITE(unit=kluout,nml=nam_turbn)
487ENDIF
488!
489END SUBROUTINE turbn_init
490!
491END MODULE modd_turb_n
real, parameter xundef
integer, parameter jpmodelmax
logical, pointer lharat
real, pointer xcei_max
integer, parameter nusrbl89
integer, parameter nctp
real, pointer xced
logical, pointer lthermmf
character(len=4), pointer cturblen
integer, parameter ncpr5
integer, parameter nbl89exp
real, dimension(:,:,:), pointer xdiss
real, dimension(:,:,:), pointer xwvmf
real, pointer xlini
real, dimension(:,:,:), pointer xwthvmf
real, pointer xchv
type(turb_t), dimension(jpmodelmax), target, save turb_model
type(turb_t), pointer, save turbn
integer, pointer nturbsplit
real, pointer xcei_min
integer, parameter ncpr3
logical, pointer lturb_diag
real, pointer xsmag
logical, pointer lturb_flx
integer, parameter nchf
logical, pointer ldynmf
integer, parameter ncht1
logical, pointer lsmooth_prandtl
real, dimension(:,:,:), pointer xthp
real, pointer xcht2
integer, parameter nced
real, dimension(:,:,:), pointer xcei
integer, parameter nturb_s
real, pointer xcoefhgradrm
real, dimension(:,:,:), pointer xlem
integer, parameter ncht2
real, pointer xcldthold
logical, pointer lbl89top
subroutine turb_goto_model(kfrom, kto)
real, pointer xctp
real, dimension(:,:,:), pointer xssrfl_c
real, pointer xchf
logical, pointer lgoger
logical, pointer lbl89exp
logical, pointer lturb_precip
real, dimension(:,:), pointer xsbl_depth
integer, parameter ncep
real, pointer xcoef_ampl_sat
character(len=4), pointer ctom
real, pointer xcshf
logical, pointer lrmc01
subroutine turbn_init(hprogram, tfilenam, ldneednam, kluout, lddefaultval, ldreadnam, ldcheck, kprint)
real, pointer xctv
logical, pointer ltkeminturb
real, pointer xcpr1
logical, pointer lcloudmodiflm
real, pointer xcadap
real, dimension(:,:,:), pointer xdyp
logical, pointer lrotate_wind
real, pointer xbl89exp
real, dimension(:,:,:), pointer xssvfl_c
logical, pointer lleonard
real, dimension(:,:,:), pointer xsstfl_c
integer, parameter ncmfs
real, dimension(:,:,:), pointer xtr
real, dimension(:,:), pointer xbl_depth
real, pointer xalthgrad
real, pointer xtkemin
integer, parameter ncpr4
logical, pointer llemarie21
logical, pointer lsig_conv
real, pointer xcoefhgradthl
real, dimension(:,:,:), pointer xwumf
integer, parameter ncshf
real, pointer ximpl
character(len=4), pointer cturblen_cloud
real, dimension(:,:,:), pointer xssufl_c
real, pointer xusrbl89
real, pointer xcht1
logical, pointer lprojqiturb
integer, parameter nctv
character(len=4), pointer cturbdim
real, pointer xminsigs
subroutine check_nam_val_char(kluout, hname, hvar, hvalue1, hvalue2, hvalue3, hvalue4, hvalue5, hvalue6, hvalue7, hvalue8, hvalue9, hvalue10, hvalue11, hvalue12)
subroutine, public posnam_phy(tfilenam, cdnaml, ldneednam, ldfound)