1SUBROUTINE ini_phyex(D, HPROGRAM, TPFILE, LDNEEDNAM, KLUOUT, KFROM, KTO, &
3 &CMICRO, CSCONV, CTURB, &
5 &LDCHANGEMODEL, LDDEFAULTVAL, LDREADNAM, LDCHECK, &
37USE parkind1,
ONLY: jprb
97CHARACTER(LEN=6),
INTENT(IN) :: HPROGRAM
99LOGICAL,
INTENT(IN) :: LDNEEDNAM
100INTEGER,
INTENT(IN) :: KLUOUT
101INTEGER,
INTENT(IN) :: KFROM
102INTEGER,
INTENT(IN) :: KTO
103REAL,
INTENT(IN) :: PTSTEP
104REAL,
INTENT(IN) :: PDZMIN
105CHARACTER(LEN=4),
INTENT(IN) :: CMICRO
106CHARACTER(LEN=4),
INTENT(IN) :: CSCONV
107CHARACTER(LEN=4),
INTENT(IN) :: CTURB
108LOGICAL,
OPTIONAL,
INTENT(IN) :: LDCHANGEMODEL
109LOGICAL,
OPTIONAL,
INTENT(IN) :: LDDEFAULTVAL
110LOGICAL,
OPTIONAL,
INTENT(IN) :: LDREADNAM
111LOGICAL,
OPTIONAL,
INTENT(IN) :: LDCHECK
112INTEGER,
OPTIONAL,
INTENT(IN) :: KPRINT
114LOGICAL,
OPTIONAL,
INTENT(IN) :: LDINIT
115TYPE(
phyex_t),
OPTIONAL,
INTENT(IN) :: PHYEX_IN
116TYPE(
phyex_t),
OPTIONAL,
INTENT(INOUT) :: PHYEX_OUT
124LOGICAL :: LLINIT, LLCHANGEMODEL, LLCHECK
126REAL :: Z_DEFAULT_KIND
131IF(
PRESENT(ldinit)) llinit=ldinit
133IF(
PRESENT(ldcheck)) llcheck=ldcheck
135IF(
PRESENT(ldchangemodel)) llchangemodel=ldchangemodel
137IF(
PRESENT(kprint)) iprint=kprint
141IF(kind(z_default_kind) /= jprb .OR. kind(z_default_kind) /=
mnhreal)
THEN
142 print*,
"Inconsistent compilation option"
143 print*,
" PARKIND1 has been compiled with kind=", jprb
144 print*,
" MODD_PRECISION has been compiled with kind=",
mnhreal
145 print*,
" PHYEX has been compiled with kind=", kind(z_default_kind)
152 IF(iprint==2)
WRITE(unit=kluout,fmt=
'('' MODD_CST '')')
153 IF(
PRESENT(phyex_in))
cst=phyex_in%CST
156 IF(
PRESENT(phyex_out)) phyex_out%CST=
cst
161IF(cmicro==
'ICE3' .OR. cmicro==
'ICE4' .OR. cmicro==
'LIMA')
THEN
164 IF(iprint==2)
WRITE(unit=kluout,fmt=
'('' MODD_PARAM_ICEN, MODD_RAIN_ICE_DESCRN, MODD_RAIN_ICE_PARAMN, MODD_CLOUDPARN '')')
165 IF(llchangemodel)
THEN
170 IF(cmicro==
'LIMA')
THEN
177 IF(
PRESENT(phyex_in))
THEN
182 IF(cmicro==
'LIMA')
THEN
192 &lddefaultval, ldreadnam, ldcheck, kprint)
193 IF(cmicro==
'LIMA')
THEN
195 &lddefaultval, ldreadnam, ldcheck, kprint)
202 IF(cmicro==
'LIMA')
THEN
203 IF (.NOT.
PRESENT(phyaero))
THEN
205 &
"PHYAERO must be present to initialialise aerosols.")
212 IF(
PRESENT(phyex_out))
THEN
217 IF(cmicro==
'LIMA')
THEN
231 IF(
PRESENT(phyex_in))
tnsv=phyex_in%TNSV
234 &hdcloud=cmicro, odupdate=.true.)
236 IF(
PRESENT(phyex_out)) phyex_out%TNSV=
tnsv
243 IF(iprint==2)
WRITE(unit=kluout,fmt=
'('' MODD_NEB_n '')')
245 IF(
PRESENT(phyex_in))
nebn=phyex_in%NEBN
247 CALL nebn_init(hprogram, tpfile, ldneednam, kluout, &
248 &lddefaultval, ldreadnam, ldcheck, kprint)
253 IF(
PRESENT(phyex_out)) phyex_out%NEBN=
nebn
258IF(csconv==
'EDKF')
THEN
259 IF(iprint==2)
WRITE(unit=kluout,fmt=
'('' MODD_PARAM_MFSHALL_n '')')
264 &lddefaultval, ldreadnam, ldcheck, kprint)
274IF(cturb==
'TKEL')
THEN
275 IF(iprint==2)
WRITE(unit=kluout,fmt=
'('' MODD_TURB_n MODD_CTURB '')')
276 IF(llchangemodel)
THEN
280 IF(
PRESENT(phyex_in))
THEN
285 CALL turbn_init(hprogram, tpfile, ldneednam, kluout, &
286 &lddefaultval, ldreadnam, ldcheck, kprint)
291 IF(
PRESENT(phyex_out))
THEN
292 phyex_out%TURBN=
turbn
300 IF((cmicro==
'ICE3' .OR. cmicro==
'ICE4' .OR. cmicro==
'LIMA') .AND. cturb==
'TKEL')
THEN
303 &
"CSUBG_AUCV_RC and/or CSUBG_AUCV_RI cannot be 'ADJU' if CCONDENS is not 'GAUS'")
307 &
"CSUBG_AUCV_RC and/or CSUBG_AUCV_RI cannot be 'ADJU' if CMICRO is 'LIMA'")
311 &
'LSTATNW only tested in combination with HARATU and EDMFm!')
315 IF(cmicro==
'LIMA')
THEN
318 &
"YOU MUST USE LPTSPLIT=T WITH CMICRO=LIMA AND LSUBG_COND")
322 &
"YOU MUST USE LADJ=t WITH CMICRO=LIMA AND LSUBG_COND")
324 IF (csconv==
'EDKF')
THEN
327 &
"YOU CANNOT USE LRELAX_ALPHA_MF when CMICRO is 'LIMA'")
330 IF(.NOT.
nebn%LCONDBORN)
THEN
332 &
"LCONDBORN (MODD_NEB_n) must be .TRUE. with LIMA")
subroutine ini_phyex(d, hprogram, tpfile, ldneednam, kluout, kfrom, kto, ptstep, pdzmin, cmicro, csconv, cturb, phyaero, ldchangemodel, lddefaultval, ldreadnam, ldcheck, kprint, ldinit, phyex_in, phyex_out)
subroutine cloudpar_goto_model(kfrom, kto)
type(cloudpar_t), pointer, save cloudparn
subroutine print_cst(kulout)
type(cst_t), target, save cst
subroutine cturb_associate()
type(csturb_t), target, save csturb
subroutine icet_param_goto_model(kto)
type(icet_param_t), pointer, save ice_t_parameters
integer, parameter nverb_fatal
logical, pointer lsubg_cond
subroutine neb_goto_model(kfrom, kto)
character(len=80), pointer ccondens
subroutine nebn_init(hprogram, tfilenam, ldneednam, kluout, lddefaultval, ldreadnam, ldcheck, kprint)
type(neb_t), pointer, save nebn
type(nsv_t), target, save tnsv
subroutine nsv_associate()
subroutine param_icen_init(hprogram, tfilenam, ldneednam, kluout, lddefaultval, ldreadnam, ldcheck, kprint)
type(param_ice_t), pointer, save param_icen
subroutine param_ice_goto_model(kfrom, kto)
character(len=4), pointer csubg_aucv_rc
character(len=80), pointer csubg_aucv_ri
type(param_lima_cold_t), target, save param_lima_cold
type(param_lima_mixed_t), target param_lima_mixed
type(param_lima_warm_t), target, save param_lima_warm
logical, pointer lptsplit
subroutine param_lima_associate()
type(param_lima_t), target, save param_lima
subroutine param_lima_init(hprogram, tfilenam, odneednam, kluout, oddefaultval, odreadnam, odcheck, kprint)
subroutine param_mfshalln_init(hprogram, tfilenam, ldneednam, kluout, lddefaultval, ldreadnam, ldcheck, kprint)
type(param_mfshall_t), pointer, save param_mfshalln
subroutine param_mfshall_goto_model(kfrom, kto)
integer, parameter mnhreal
type(rain_ice_descr_t), pointer, save rain_ice_descrn
subroutine rain_ice_descr_goto_model(kfrom, kto)
type(rain_ice_param_t), pointer, save rain_ice_paramn
subroutine rain_ice_param_goto_model(kfrom, kto)
type(tiwmx_t), target, save tiwmx
type(turb_t), pointer, save turbn
subroutine turb_goto_model(kfrom, kto)
subroutine turbn_init(hprogram, tfilenam, ldneednam, kluout, lddefaultval, ldreadnam, ldcheck, kprint)
subroutine ini_lima(ptstep, pdzmin, ksplitr, ksplitg)
subroutine ini_rain_ice(d, hprogram, kluout, ptstep, pdzmin, ksplitr, hcloud, ice_t_parameters)
subroutine ini_turb(hprogram)
subroutine init_aerosol_properties(phyaero)
subroutine lima_update_nsv(limap, tnsv, odinit, kmi, ksv, hdcloud, odupdate)