source: LMDZ6/branches/contrails/libf/phylmd/lmdz_lscp_ini.f90 @ 5643

Last change on this file since 5643 was 5643, checked in by aborella, 5 weeks ago

Various minor corrections to ISSR and contrails param

File size: 32.9 KB
Line 
1MODULE lmdz_lscp_ini
2
3IMPLICIT NONE
4
5  ! PARAMETERS for lscp:
6  !--------------------
7 
8  REAL RCPD, RLSTT, RLVTT, RLMLT, RVTMP2, RTT, RD, RV, RG, RPI, EPS_W
9  !$OMP THREADPRIVATE(RCPD, RLSTT, RLVTT, RLMLT, RVTMP2, RTT, RD, RV, RG, RPI, EPS_W)
10 
11  REAL, SAVE, PROTECTED :: seuil_neb=0.001      ! cloud fraction threshold: a cloud can precipitate when exceeded
12  !$OMP THREADPRIVATE(seuil_neb)
13
14  REAL, SAVE, PROTECTED :: min_neb_th=1e-10      ! a cloud produced by bi-gaussian really exists when exceeded
15  !$OMP THREADPRIVATE(min_neb_th)
16
17  REAL, SAVE, PROTECTED :: min_frac_thermals=1.e-10   ! minimum thermals fraction for use of bigaussian distribution
18  !$OMP THREADPRIVATE(min_frac_thermals)
19
20  INTEGER, SAVE :: lunout, prt_level            ! Logical unit number and level for standard output
21  !$OMP THREADPRIVATE(lunout,prt_level)
22
23  INTEGER, SAVE, PROTECTED :: niter_lscp=5      ! number of iterations to calculate autoconversion to precipitation
24  !$OMP THREADPRIVATE(niter_lscp)
25
26  INTEGER, SAVE, PROTECTED :: iflag_evap_prec=1 ! precipitation evaporation flag. 0: nothing, 1: "old way",
27                                                ! 2: Max cloud fraction above to calculate the max of reevaporation
28                                                ! >=4: LTP'method i.e. evaporation in the clear-sky fraction of the mesh only
29                                                ! pay attention that iflag_evap_prec=4 may lead to unrealistic and overestimated
30                                                ! evaporation. Use 5 instead
31  !$OMP THREADPRIVATE(iflag_evap_prec)
32
33  REAL, SAVE, PROTECTED :: t_coup=234.0         ! temperature threshold which determines the phase
34                                                ! for which the saturation vapor pressure is calculated
35  !$OMP THREADPRIVATE(t_coup)
36  REAL, SAVE, PROTECTED :: DDT0=0.01            ! iteration parameter
37  !$OMP THREADPRIVATE(DDT0)
38
39  REAL, SAVE, PROTECTED :: ztfondue=278.15      ! parameter to calculate melting fraction of precipitation
40  !$OMP THREADPRIVATE(ztfondue)
41
42  REAL, SAVE, PROTECTED :: temp_nowater=235.15  ! temperature below which liquid water no longer exists
43  !$OMP THREADPRIVATE(temp_nowater)
44
45  REAL, SAVE, PROTECTED :: a_tr_sca(4)          ! Variables for tracers temporary: alpha parameter for scavenging, 4 possible scavenging processes
46  !$OMP THREADPRIVATE(a_tr_sca)
47 
48  REAL, SAVE, PROTECTED ::  min_frac_th_cld=1.e-10   ! minimum thermal fraction to compute a thermal cloud fraction
49  !$OMP THREADPRIVATE(min_frac_th_cld)
50
51  LOGICAL, SAVE, PROTECTED :: ok_radocond_snow=.false. ! take into account the mass of ice precip in the cloud ice content seen by radiation
52  !$OMP THREADPRIVATE(ok_radocond_snow)
53
54  REAL, SAVE, PROTECTED :: t_glace_min=258.0    ! lower-bound temperature parameter for cloud phase determination
55  !$OMP THREADPRIVATE(t_glace_min)
56
57  REAL, SAVE, PROTECTED :: t_glace_max=273.15   ! upper-bound temperature parameter for cloud phase determination
58  !$OMP THREADPRIVATE(t_glace_max)
59
60  REAL, SAVE, PROTECTED :: exposant_glace=1.0   ! parameter for cloud phase determination
61  !$OMP THREADPRIVATE(exposant_glace)
62
63  INTEGER, SAVE, PROTECTED :: iflag_vice=0      ! which expression for ice crystall fall velocity
64  !$OMP THREADPRIVATE(iflag_vice)
65
66  INTEGER, SAVE, PROTECTED :: iflag_t_glace=0   ! which expression for cloud phase partitioning
67  !$OMP THREADPRIVATE(iflag_t_glace)
68
69  INTEGER, SAVE, PROTECTED :: iflag_cloudth_vert=0          ! option for determining cloud fraction and content in convective boundary layers
70  !$OMP THREADPRIVATE(iflag_cloudth_vert)
71
72  INTEGER, SAVE, PROTECTED :: iflag_gammasat=0              ! which threshold for homogeneous nucleation below -40oC
73  !$OMP THREADPRIVATE(iflag_gammasat)
74
75  INTEGER, SAVE, PROTECTED :: iflag_rain_incloud_vol=0      ! use of volume cloud fraction for rain autoconversion
76  !$OMP THREADPRIVATE(iflag_rain_incloud_vol)
77
78  INTEGER, SAVE, PROTECTED :: iflag_bergeron=0              ! bergeron effect for liquid precipitation treatment 
79  !$OMP THREADPRIVATE(iflag_bergeron)
80
81  INTEGER, SAVE, PROTECTED :: iflag_fisrtilp_qsat=0         ! qsat adjustment (iterative) during autoconversion
82  !$OMP THREADPRIVATE(iflag_fisrtilp_qsat)
83
84  INTEGER, SAVE, PROTECTED :: iflag_pdf=0                   ! type of subgrid scale qtot pdf
85  !$OMP THREADPRIVATE(iflag_pdf)
86
87  INTEGER, SAVE, PROTECTED :: iflag_icefrac=0               ! which phase partitioning function to use
88  !$OMP THREADPRIVATE(iflag_icefrac)
89
90  INTEGER, SAVE, PROTECTED :: iflag_autoconversion=0        ! autoconversion option
91  !$OMP THREADPRIVATE(iflag_autoconversion)
92
93  LOGICAL, SAVE, PROTECTED :: ok_bug_phase_lscp=.true.      ! bug on phase partitioning after precipitation processes
94  !$OMP THREADPRIVATE(ok_bug_phase_lscp)
95
96  LOGICAL, SAVE, PROTECTED :: ok_bug_ice_fallspeed=.true.   ! flag to activate the high clipping of iwc when calculating ice  fallspeed velocity
97  !$OMP THREADPRIVATE(ok_bug_ice_fallspeed)
98
99  LOGICAL, SAVE, PROTECTED :: reevap_ice=.false.            ! no liquid precip for T< threshold
100  !$OMP THREADPRIVATE(reevap_ice)
101
102  REAL, SAVE, PROTECTED :: cld_lc_lsc=2.6e-4                ! liquid autoconversion coefficient, stratiform rain
103  !$OMP THREADPRIVATE(cld_lc_lsc)
104
105  REAL, SAVE, PROTECTED :: cld_lc_con=2.6e-4                ! liquid autoconversion coefficient, convective rain
106  !$OMP THREADPRIVATE(cld_lc_con)
107
108  REAL, SAVE, PROTECTED :: cld_tau_lsc=3600.                ! liquid autoconversion timescale, stratiform rain
109  !$OMP THREADPRIVATE(cld_tau_lsc)
110
111  REAL, SAVE, PROTECTED :: cld_tau_con=3600.                ! liquid autoconversion timescale, convective rain
112  !$OMP THREADPRIVATE(cld_tau_con)
113
114  REAL, SAVE, PROTECTED :: cld_expo_lsc=2.                  ! liquid autoconversion threshold exponent, stratiform rain
115  !$OMP THREADPRIVATE(cld_expo_lsc)
116
117  REAL, SAVE, PROTECTED :: cld_expo_con=2.                  ! liquid autoconversion threshold exponent, convective rain
118  !$OMP THREADPRIVATE(cld_expo_con)
119
120  REAL, SAVE, PROTECTED :: ffallv_lsc=1.                    ! tuning coefficient crystal fall velocity, stratiform
121  !$OMP THREADPRIVATE(ffallv_lsc)
122
123  REAL, SAVE, PROTECTED :: ffallv_con=1.                    ! tuning coefficient crystal fall velocity, convective
124  !$OMP THREADPRIVATE(ffallv_con)
125
126  REAL, SAVE, PROTECTED :: coef_eva=2e-5                    ! tuning coefficient liquid precip evaporation
127  !$OMP THREADPRIVATE(coef_eva)
128
129  REAL, SAVE, PROTECTED :: coef_sub                         ! tuning coefficient ice precip sublimation
130  !$OMP THREADPRIVATE(coef_sub)
131
132  REAL, SAVE, PROTECTED :: expo_eva=0.5                     ! tuning coefficient liquid precip evaporation
133  !$OMP THREADPRIVATE(expo_eva)
134
135  REAL, SAVE, PROTECTED :: expo_sub                         ! tuning coefficient ice precip sublimation
136  !$OMP THREADPRIVATE(expo_sub)
137
138  REAL, SAVE, PROTECTED :: cice_velo=1.645                  ! factor in the ice fall velocity formulation
139  !$OMP THREADPRIVATE(cice_velo)
140
141  REAL, SAVE, PROTECTED ::  dice_velo=0.16                  ! exponent in the ice fall velocity formulation
142  !$OMP THREADPRIVATE(dice_velo)
143
144  REAL, SAVE, PROTECTED :: dist_liq=300.                    ! typical deph of cloud-top liquid layer in mpcs
145  !$OMP THREADPRIVATE(dist_liq)
146
147  REAL, SAVE, PROTECTED  :: tresh_cl=0.0                  ! cloud fraction threshold for cloud top search
148  !$OMP THREADPRIVATE(tresh_cl)
149
150  !--Parameters for condensation and ice supersaturation
151
152  LOGICAL, SAVE, PROTECTED :: ok_ice_supersat=.FALSE.        ! activates the condensation scheme that allows for ice supersaturation
153  !$OMP THREADPRIVATE(ok_ice_supersat)
154
155  LOGICAL, SAVE, PROTECTED :: ok_no_issr_strato=.FALSE.      ! deactivates the ice supersaturation scheme in the stratosphere
156  !$OMP THREADPRIVATE(ok_no_issr_strato)
157
158  LOGICAL, SAVE, PROTECTED :: ok_unadjusted_clouds=.FALSE.   ! if True, relax the saturation adjustment assumption for ice clouds
159  !$OMP THREADPRIVATE(ok_unadjusted_clouds)
160
161  LOGICAL, SAVE, PROTECTED :: ok_weibull_warm_clouds=.FALSE. ! if True, the weibull condensation scheme replaces the lognormal condensation scheme at positive temperatures
162  !$OMP THREADPRIVATE(ok_weibull_warm_clouds)
163
164  LOGICAL, SAVE, PROTECTED :: ok_nodeep_lscp=.FALSE.         ! if True, the deep convection clouds are removed from the lscp calculations
165  !$OMP THREADPRIVATE(ok_nodeep_lscp)
166
167  LOGICAL, SAVE, PROTECTED :: ok_nodeep_lscp_rad=.FALSE.     ! if True, the deep convection clouds are not accounted two times in radiative transfer
168  !$OMP THREADPRIVATE(ok_nodeep_lscp_rad)
169
170  REAL, SAVE, PROTECTED :: ffallv_issr                       ! tuning coefficient crystal fall velocity, cirrus clouds (with ISSR)
171  !$OMP THREADPRIVATE(ffallv_issr)
172
173  REAL, SAVE, PROTECTED :: cooling_rate_ice_thresh=2.e-5     ! [K/s] minimum virtual cooling rate before ice is sublimated
174  !$OMP THREADPRIVATE(cooling_rate_ice_thresh)
175
176  REAL, SAVE, PROTECTED :: depo_coef_cirrus=.7               ! [-] deposition coefficient for growth of ice crystals in cirrus clouds
177  !$OMP THREADPRIVATE(depo_coef_cirrus)
178
179  REAL, SAVE, PROTECTED :: capa_cond_cirrus=.5               ! [-] capacitance factor for growth/sublimation of ice crystals in cirrus clouds
180  !$OMP THREADPRIVATE(capa_cond_cirrus)
181
182  REAL, SAVE, PROTECTED :: N_ice_volume=3.E4                 ! [#/m3] ice crystal concentration in cirrus clouds (default value from  Kramer et al, 2020)
183  !$OMP THREADPRIVATE(N_ice_volume)
184
185  REAL, SAVE, PROTECTED :: nu_iwc_pdf_lscp=4./3.             ! [-] shape factor for the ice distribution inside cirrus clouds
186  !$OMP THREADPRIVATE(nu_iwc_pdf_lscp)
187
188  REAL, SAVE, PROTECTED :: corr_incld_depsub                 ! [-] correction factor for in-cloud IWC rather than local IWC in dep / sub process BEWARE NO GETIN (calculated automatically)
189  !$OMP THREADPRIVATE(corr_incld_depsub)
190 
191  REAL, SAVE, PROTECTED :: beta_pdf_lscp=8.46E-4             ! [SI] tuning coefficient for the standard deviation of the PDF of water vapor in the clear sky region
192  !$OMP THREADPRIVATE(beta_pdf_lscp)
193 
194  REAL, SAVE, PROTECTED :: temp_thresh_pdf_lscp=189.         ! [K] factor for the PDF fit of water vapor in UTLS - below this temperature, water vapor is homogeneously distributed in the clear sky region
195  !$OMP THREADPRIVATE(temp_thresh_pdf_lscp)
196 
197  REAL, SAVE, PROTECTED :: k0_pdf_lscp=3.01                  ! [-] factor for the PDF fit of water vapor in UTLS
198  !$OMP THREADPRIVATE(k0_pdf_lscp)
199 
200  REAL, SAVE, PROTECTED :: kappa_pdf_lscp=0.0192             ! [K-1] factor for the PDF fit of water vapor in UTLS
201  !$OMP THREADPRIVATE(kappa_pdf_lscp)
202 
203  REAL, SAVE, PROTECTED :: std100_pdf_lscp=4.08              ! [%] standard deviation at RHliq=100% of the PDF fit of water vapor in UTLS
204  !$OMP THREADPRIVATE(std100_pdf_lscp)
205 
206  REAL, SAVE, PROTECTED :: a_homofreez=2.349                 ! [-] factor for the Koop homogeneous freezing fit
207  !$OMP THREADPRIVATE(a_homofreez)
208 
209  REAL, SAVE, PROTECTED :: b_homofreez=259.                  ! [K] factor for the Koop homogeneous freezing fit
210  !$OMP THREADPRIVATE(b_homofreez)
211
212  REAL, SAVE, PROTECTED :: delta_hetfreez=0.85               ! [-] value between 0 and 1 to simulate for heterogeneous freezing.
213  !$OMP THREADPRIVATE(delta_hetfreez)
214
215  REAL, SAVE, PROTECTED :: aspect_ratio_cirrus=1./9.         ! [-] aspect ratio of natural cirrus clouds
216  !$OMP THREADPRIVATE(aspect_ratio_cirrus)
217 
218  REAL, SAVE, PROTECTED :: coef_mixing_lscp=1.E-3            ! [-] tuning coefficient for the mixing process
219  !$OMP THREADPRIVATE(coef_mixing_lscp)
220 
221  REAL, SAVE, PROTECTED :: coef_shear_lscp=0.72              ! [-] additional coefficient for the shearing process (subprocess of the mixing process)
222  !$OMP THREADPRIVATE(coef_shear_lscp)
223  !--End of the parameters for condensation and ice supersaturation
224
225  !--Parameters for aviation
226
227  LOGICAL, SAVE, PROTECTED :: ok_plane_contrail              ! activates the contrails parameterisation
228  !$OMP THREADPRIVATE(ok_plane_contrail)
229
230  LOGICAL, SAVE, PROTECTED :: ok_precip_lincontrails=.TRUE.  ! if True, linear contrails can precipitate
231  !$OMP THREADPRIVATE(ok_precip_lincontrails)
232
233  REAL, SAVE, PROTECTED :: aspect_ratio_lincontrails=.1      ! [-] aspect ratio of linear contrails
234  !$OMP THREADPRIVATE(aspect_ratio_lincontrails)
235
236  REAL, SAVE, PROTECTED :: coef_mixing_lincontrails          ! [-] tuning coefficient for the linear contrails mixing process
237  !$OMP THREADPRIVATE(coef_mixing_lincontrails)
238 
239  REAL, SAVE, PROTECTED :: coef_shear_lincontrails           ! [-] additional coefficient for the linear contrails shearing process (subprocess of the contrails mixing process)
240  !$OMP THREADPRIVATE(coef_shear_lincontrails)
241 
242  REAL, SAVE, PROTECTED :: chi_mixing_lincontrails=3.        ! [-] factor for increasing the chance that moist air is surrounding linear contrails
243  !$OMP THREADPRIVATE(chi_mixing_lincontrails)
244
245  REAL, SAVE, PROTECTED :: EI_H2O_aviation=1.25              ! [kgH2O/kg] emission index of water vapor for a given fuel type
246  !$OMP THREADPRIVATE(EI_H2O_aviation)
247
248  REAL, SAVE, PROTECTED :: qheat_fuel_aviation=43.2E6        ! [J/kg] specific combustion heat for a given fuel type
249  !$OMP THREADPRIVATE(qheat_fuel_aviation)
250
251  REAL, SAVE, PROTECTED :: prop_efficiency_aviation=.3       ! [-] average propulsion efficiency of aircraft
252  !$OMP THREADPRIVATE(prop_efficiency_aviation)
253
254  REAL, SAVE, PROTECTED :: linear_contrails_lifetime=10800.  ! [s] timescale of the lifetime of linear contrails
255  !$OMP THREADPRIVATE(linear_contrails_lifetime)
256
257  REAL, SAVE, PROTECTED :: initial_width_contrails=200.      ! [m] initial width of the linear contrails formed
258  !$OMP THREADPRIVATE(initial_width_contrails)
259
260  REAL, SAVE, PROTECTED :: initial_height_contrails=200.     ! [m] initial height of the linear contrails formed
261  !$OMP THREADPRIVATE(initial_height_contrails)
262
263  REAL, SAVE, PROTECTED :: aviation_coef=1.                  ! [-] scaling factor for aviation emissions and flown distance
264  !$OMP THREADPRIVATE(aviation_coef)
265  !--End of the parameters for aviation
266
267  !--Parameters for poprecip
268  LOGICAL, SAVE, PROTECTED :: ok_poprecip=.FALSE.           ! use the processes-oriented formulation of precipitations
269  !$OMP THREADPRIVATE(ok_poprecip)
270
271  LOGICAL, SAVE, PROTECTED :: ok_corr_vap_evasub=.FALSE.    ! use the corrected version of clear-sky water vapor for the evap / subl processes
272  !$OMP THREADPRIVATE(ok_corr_vap_evasub)
273
274  LOGICAL, SAVE, PROTECTED :: ok_growth_precip_deposition=.FALSE.
275  !$OMP THREADPRIVATE(ok_growth_precip_deposition)
276
277  REAL, SAVE, PROTECTED :: cld_lc_lsc_snow=2.e-5            ! snow autoconversion coefficient, stratiform. default from  Chaboureau and PInty 2006
278  !$OMP THREADPRIVATE(cld_lc_lsc_snow)
279
280  REAL, SAVE, PROTECTED :: cld_lc_con_snow=2.e-5            ! snow autoconversion coefficient, convective
281  !$OMP THREADPRIVATE(cld_lc_con_snow)
282
283  REAL, SAVE, PROTECTED :: rain_int_min=1.e-5               ! Minimum local rain intensity [mm/s] before the decrease in associated precipitation fraction
284  !$OMP THREADPRIVATE(rain_int_min)
285
286  REAL, SAVE, PROTECTED :: thresh_precip_frac=1.E-6         ! precipitation fraction threshold [-]
287  !$OMP THREADPRIVATE(thresh_precip_frac)
288
289  REAL, SAVE, PROTECTED :: capa_crystal=1.                  ! Crystal capacitance (shape factor) for lscp_icefrac_turb [-]
290  !$OMP THREADPRIVATE(capa_crystal)
291
292  REAL, SAVE, PROTECTED :: naero5=0.5                       ! Number concentration of aerosol larger than 0.5 microns [scm-3]
293  !$OMP THREADPRIVATE(naero5)
294
295  REAL, SAVE, PROTECTED :: gamma_snwretro = 0.              ! Proportion of snow taken into account in ice retroaction in lscp_icefrac_turb [-]
296  !$OMP THREADPRIVATE(gamma_snwretro)
297
298  REAL, SAVE, PROTECTED :: gamma_taud = 1.                  ! Tuning coeff for Lagrangian decorrelation timescale in lscp_icefrac_turb [-]
299  !$OMP THREADPRIVATE(gamma_taud)
300
301  REAL, SAVE, PROTECTED :: gamma_col=1.                     ! Tuning coefficient for rain collection efficiency (poprecip) [-]
302  !$OMP THREADPRIVATE(gamma_col)
303
304  REAL, SAVE, PROTECTED :: gamma_agg=1.                     ! Tuning coefficient for snow aggregation efficiency (poprecip) [-]
305  !$OMP THREADPRIVATE(gamma_agg)
306
307  REAL, SAVE, PROTECTED :: gamma_rim=1.                     ! Tuning coefficient for riming efficiency (poprecip) [-]
308  !$OMP THREADPRIVATE(gamma_rim)
309
310  REAL, SAVE, PROTECTED :: gamma_melt=1.                    ! Tuning coefficient for snow melting efficiency (poprecip) [-]
311  !$OMP THREADPRIVATE(gamma_melt)
312 
313  REAL, SAVE, PROTECTED :: gamma_freez=1.                   ! Tuning coefficient for rain collision freezing efficiency (poprecip) [-]
314  !$OMP THREADPRIVATE(gamma_freez)
315
316  REAL, SAVE, PROTECTED :: rho_rain=1000.                   ! Rain density [kg/m3]
317  !$OMP THREADPRIVATE(rho_rain)
318
319  REAL, SAVE, PROTECTED :: rho_ice=920.                     ! Ice density  [kg/m3]
320  !$OMP THREADPRIVATE(rho_ice)
321
322  REAL, SAVE, PROTECTED :: r_rain=500.E-6                   ! Rain droplets radius (poprecip) [m]
323  !$OMP THREADPRIVATE(r_rain)
324
325  REAL, SAVE, PROTECTED :: r_snow=1.E-3                     ! Ice crystals radius (poprecip) [m]
326  !$OMP THREADPRIVATE(r_snow)
327
328  REAL, SAVE, PROTECTED :: expo_tau_auto_snow=0.1
329  !$OMP THREADPRIVATE(expo_tau_auto_snow)
330
331  REAL, SAVE, PROTECTED :: tau_auto_snow_min=100.           ! Snow autoconversion minimal timescale (when liquid) [s]
332  !$OMP THREADPRIVATE(tau_auto_snow_min)
333
334  REAL, SAVE, PROTECTED :: tau_auto_snow_max=1000.          ! Snow autoconversion minimal timescale (when only ice) [s]
335  !$OMP THREADPRIVATE(tau_auto_snow_max)
336
337  REAL, SAVE, PROTECTED :: eps=1.E-10                       ! Treshold 0 [-]
338  !$OMP THREADPRIVATE(eps)
339
340  REAL, SAVE, PROTECTED :: alpha_freez=4.                   ! Slope of exponential for immersion freezing timescale [-]
341  !$OMP THREADPRIVATE(alpha_freez)
342
343  REAL, SAVE, PROTECTED :: beta_freez=0.1                   ! Inv.time immersion freezing [s-1]
344  !$OMP THREADPRIVATE(beta_freez)
345
346  REAL, SAVE, PROTECTED :: rain_fallspeed=4.                ! Rain fall velocity [m/s]
347  !$OMP THREADPRIVATE(rain_fallspeed)
348
349  REAL, SAVE, PROTECTED :: rain_fallspeed_clr               ! Rain fall velocity in clear sky [m/s]
350  !$OMP THREADPRIVATE(rain_fallspeed_clr)
351
352  REAL, SAVE, PROTECTED :: rain_fallspeed_cld               ! Rain fall velocity in cloudy sky [m/s]
353  !$OMP THREADPRIVATE(rain_fallspeed_cld)
354
355  REAL, SAVE, PROTECTED :: snow_fallspeed=1.                ! Snow fall velocity [m/s]
356  !$OMP THREADPRIVATE(snow_fallspeed)
357
358  REAL, SAVE, PROTECTED :: snow_fallspeed_clr               ! Snow fall velocity in clear sky [m/s]
359  !$OMP THREADPRIVATE(snow_fallspeed_clr)
360
361  REAL, SAVE, PROTECTED :: snow_fallspeed_cld               ! Snow fall velocity in cloudy sky [m/s]
362  !$OMP THREADPRIVATE(snow_fallspeed_cld)
363
364  LOGICAL, SAVE, PROTECTED :: ok_ice_sedim=.FALSE.          ! Flag to activate the sedimentation of ice crystals
365  !$OMP THREADPRIVATE(ok_ice_sedim)
366
367  REAL, SAVE, PROTECTED :: fallice_sedim=1.                 ! Tuning factor for ice fallspeed velocity for sedimentation [-]
368  !$OMP THREADPRIVATE(fallice_sedim)
369  !--End of the parameters for poprecip
370
371! Two parameters used for lmdz_lscp_old only
372  INTEGER, SAVE, PROTECTED :: iflag_oldbug_fisrtilp=0, fl_cor_ebil
373  !$OMP THREADPRIVATE(iflag_oldbug_fisrtilp,fl_cor_ebil)
374
375CONTAINS
376
377SUBROUTINE lscp_ini(dtime, lunout_in, prt_level_in, ok_ice_supersat_in, &
378                    ok_no_issr_strato_in, ok_plane_contrail_in, &
379                    iflag_ratqs, fl_cor_ebil_in, &
380                    RCPD_in, RLSTT_in, RLVTT_in, RLMLT_in, RVTMP2_in, &
381                    RTT_in, RD_in, RV_in, RG_in, RPI_in, EPS_W_in)
382
383
384   USE ioipsl_getin_p_mod, ONLY : getin_p
385   USE lmdz_cloudth_ini, ONLY : cloudth_ini
386
387   REAL, INTENT(IN)      :: dtime
388   INTEGER, INTENT(IN)   :: lunout_in,prt_level_in,iflag_ratqs,fl_cor_ebil_in
389   LOGICAL, INTENT(IN)   :: ok_ice_supersat_in, ok_no_issr_strato_in, ok_plane_contrail_in
390
391   REAL, INTENT(IN)      :: RCPD_in, RLSTT_in, RLVTT_in, RLMLT_in
392   REAL, INTENT(IN)      :: RVTMP2_in, RTT_in, RD_in, RV_in, RG_in, RPI_in, EPS_W_in
393   character (len=20) :: modname='lscp_ini_mod'
394   character (len=80) :: abort_message
395
396
397    lunout=lunout_in
398    prt_level=prt_level_in
399    fl_cor_ebil=fl_cor_ebil_in
400
401    ok_ice_supersat=ok_ice_supersat_in
402    ok_no_issr_strato=ok_no_issr_strato_in
403    ok_plane_contrail=ok_plane_contrail_in
404
405    RG=RG_in
406    RD=RD_in
407    RV=RV_in
408    RCPD=RCPD_in
409    RLVTT=RLVTT_in
410    RLSTT=RLSTT_in
411    RLMLT=RLMLT_in
412    RTT=RTT_in
413    RV=RV_in
414    RVTMP2=RVTMP2_in
415    RPI=RPI_in
416    EPS_W=EPS_W_in
417
418
419
420    CALL getin_p('niter_lscp',niter_lscp)
421    CALL getin_p('iflag_evap_prec',iflag_evap_prec)
422    CALL getin_p('seuil_neb',seuil_neb)
423    CALL getin_p('ok_radocond_snow',ok_radocond_snow)
424    CALL getin_p('t_glace_max',t_glace_max)
425    CALL getin_p('t_glace_min',t_glace_min)
426    CALL getin_p('exposant_glace',exposant_glace)
427    CALL getin_p('iflag_vice',iflag_vice)
428    CALL getin_p('iflag_t_glace',iflag_t_glace)
429    CALL getin_p('iflag_cloudth_vert',iflag_cloudth_vert)
430    CALL getin_p('iflag_gammasat',iflag_gammasat)
431    CALL getin_p('iflag_rain_incloud_vol',iflag_rain_incloud_vol)
432    CALL getin_p('iflag_bergeron',iflag_bergeron)
433    CALL getin_p('iflag_fisrtilp_qsat',iflag_fisrtilp_qsat)
434    CALL getin_p('iflag_pdf',iflag_pdf)
435    CALL getin_p('iflag_icefrac',iflag_icefrac)
436    CALL getin_p('reevap_ice',reevap_ice)
437    CALL getin_p('cld_lc_lsc',cld_lc_lsc)
438    CALL getin_p('cld_lc_con',cld_lc_con)
439    CALL getin_p('cld_lc_lsc_snow',cld_lc_lsc_snow)
440    CALL getin_p('cld_lc_con_snow',cld_lc_con_snow)
441    CALL getin_p('cld_tau_lsc',cld_tau_lsc)
442    CALL getin_p('cld_tau_con',cld_tau_con)
443    CALL getin_p('cld_expo_lsc',cld_expo_lsc)
444    CALL getin_p('cld_expo_con',cld_expo_con)
445    CALL getin_p('ffallv_lsc',ffallv_lsc)
446    CALL getin_p('ffallv_lsc',ffallv_con)
447    CALL getin_p('coef_eva',coef_eva)
448    coef_sub=coef_eva
449    CALL getin_p('coef_eva_i',coef_sub)
450    CALL getin_p('coef_sub',coef_sub)
451    CALL getin_p('expo_eva',expo_eva)
452    expo_sub=expo_eva
453    CALL getin_p('expo_sub',expo_sub)
454    CALL getin_p('iflag_autoconversion',iflag_autoconversion)
455    CALL getin_p('dist_liq',dist_liq)
456    CALL getin_p('tresh_cl',tresh_cl)
457    CALL getin_p('capa_crystal',capa_crystal)
458    CALL getin_p('naero5',naero5)
459    CALL getin_p('gamma_snwretro',gamma_snwretro)
460    CALL getin_p('gamma_taud',gamma_taud)
461    CALL getin_p('iflag_oldbug_fisrtilp',iflag_oldbug_fisrtilp)
462    CALL getin_p('temp_nowater',temp_nowater)
463    CALL getin_p('ok_bug_phase_lscp',ok_bug_phase_lscp)
464    CALL getin_p('ok_bug_ice_fallspeed',ok_bug_ice_fallspeed)
465    ! for poprecip
466    CALL getin_p('ok_poprecip',ok_poprecip)
467    CALL getin_p('ok_corr_vap_evasub',ok_corr_vap_evasub)
468    CALL getin_p('ok_growth_precip_deposition',ok_growth_precip_deposition)
469    CALL getin_p('rain_int_min',rain_int_min)
470    CALL getin_p('gamma_agg',gamma_agg)
471    CALL getin_p('gamma_col',gamma_col)
472    CALL getin_p('gamma_rim',gamma_rim)
473    CALL getin_p('gamma_freez',gamma_freez)
474    CALL getin_p('gamma_melt',gamma_melt)
475    CALL getin_p('tau_auto_snow_max',tau_auto_snow_max)
476    CALL getin_p('tau_auto_snow_min',tau_auto_snow_min)
477    CALL getin_p('r_snow',r_snow)
478    CALL getin_p('rain_fallspeed',rain_fallspeed)
479    rain_fallspeed_clr=rain_fallspeed
480    rain_fallspeed_cld=rain_fallspeed
481    CALL getin_p('rain_fallspeed_clr',rain_fallspeed_clr)
482    CALL getin_p('rain_fallspeed_cld',rain_fallspeed_cld)
483    CALL getin_p('snow_fallspeed',snow_fallspeed)
484    snow_fallspeed_clr=snow_fallspeed
485    snow_fallspeed_cld=snow_fallspeed
486    CALL getin_p('snow_fallspeed_clr',snow_fallspeed_clr)
487    CALL getin_p('snow_fallspeed_cld',snow_fallspeed_cld)
488    CALL getin_p('ok_ice_sedim',ok_ice_sedim)
489    CALL getin_p('fallice_sedim',fallice_sedim)
490    ! for condensation and ice supersaturation
491    CALL getin_p('ok_unadjusted_clouds',ok_unadjusted_clouds)
492    CALL getin_p('ok_weibull_warm_clouds',ok_weibull_warm_clouds)
493    CALL getin_p('ok_nodeep_lscp',ok_nodeep_lscp)
494    CALL getin_p('ok_nodeep_lscp_rad',ok_nodeep_lscp_rad)
495    ffallv_issr=ffallv_lsc
496    CALL getin_p('ffallv_issr',ffallv_issr)
497    CALL getin_p('cooling_rate_ice_thresh',cooling_rate_ice_thresh)
498    CALL getin_p('depo_coef_cirrus',depo_coef_cirrus)
499    CALL getin_p('capa_cond_cirrus',capa_cond_cirrus)
500    CALL getin_p('N_ice_volume',N_ice_volume)
501    CALL getin_p('nu_iwc_pdf_lscp',nu_iwc_pdf_lscp)
502    CALL getin_p('beta_pdf_lscp',beta_pdf_lscp)
503    CALL getin_p('temp_thresh_pdf_lscp',temp_thresh_pdf_lscp)
504    CALL getin_p('k0_pdf_lscp',k0_pdf_lscp)
505    CALL getin_p('kappa_pdf_lscp',kappa_pdf_lscp)
506    CALL getin_p('std100_pdf_lscp',std100_pdf_lscp)
507    CALL getin_p('a_homofreez',a_homofreez)
508    CALL getin_p('b_homofreez',b_homofreez)
509    CALL getin_p('delta_hetfreez',delta_hetfreez)
510    CALL getin_p('aspect_ratio_cirrus',aspect_ratio_cirrus)
511    CALL getin_p('coef_mixing_lscp',coef_mixing_lscp)
512    CALL getin_p('coef_shear_lscp',coef_shear_lscp)
513    ! for aviation
514    CALL getin_p('ok_precip_lincontrails',ok_precip_lincontrails)
515    CALL getin_p('aspect_ratio_lincontrails',aspect_ratio_lincontrails)
516    coef_mixing_lincontrails=coef_mixing_lscp
517    CALL getin_p('coef_mixing_lincontrails',coef_mixing_lincontrails)
518    coef_shear_lincontrails=coef_shear_lscp
519    CALL getin_p('coef_shear_lincontrails',coef_shear_lincontrails)
520    CALL getin_p('chi_mixing_lincontrails',chi_mixing_lincontrails)
521    CALL getin_p('EI_H2O_aviation',EI_H2O_aviation)
522    CALL getin_p('qheat_fuel_aviation',qheat_fuel_aviation)
523    CALL getin_p('prop_efficiency_aviation',prop_efficiency_aviation)
524    CALL getin_p('linear_contrails_lifetime',linear_contrails_lifetime)
525    CALL getin_p('initial_width_contrails',initial_width_contrails)
526    CALL getin_p('initial_height_contrails',initial_height_contrails)
527    CALL getin_p('aviation_coef',aviation_coef)
528
529
530
531    WRITE(lunout,*) 'lscp_ini, niter_lscp:', niter_lscp
532    WRITE(lunout,*) 'lscp_ini, iflag_evap_prec:', iflag_evap_prec
533    WRITE(lunout,*) 'lscp_ini, seuil_neb:', seuil_neb
534    WRITE(lunout,*) 'lscp_ini, ok_radocond_snow:', ok_radocond_snow
535    WRITE(lunout,*) 'lscp_ini, t_glace_max:', t_glace_max
536    WRITE(lunout,*) 'lscp_ini, t_glace_min:', t_glace_min
537    WRITE(lunout,*) 'lscp_ini, exposant_glace:', exposant_glace
538    WRITE(lunout,*) 'lscp_ini, iflag_vice:', iflag_vice
539    WRITE(lunout,*) 'lscp_ini, iflag_t_glace:', iflag_t_glace
540    WRITE(lunout,*) 'lscp_ini, iflag_cloudth_vert:', iflag_cloudth_vert
541    WRITE(lunout,*) 'lscp_ini, iflag_gammasat:', iflag_gammasat
542    WRITE(lunout,*) 'lscp_ini, iflag_rain_incloud_vol:', iflag_rain_incloud_vol
543    WRITE(lunout,*) 'lscp_ini, iflag_bergeron:', iflag_bergeron
544    WRITE(lunout,*) 'lscp_ini, iflag_fisrtilp_qsat:', iflag_fisrtilp_qsat
545    WRITE(lunout,*) 'lscp_ini, iflag_pdf', iflag_pdf
546    WRITE(lunout,*) 'lscp_ini, iflag_icefrac', iflag_icefrac
547    WRITE(lunout,*) 'lscp_ini, reevap_ice', reevap_ice
548    WRITE(lunout,*) 'lscp_ini, cld_lc_lsc', cld_lc_lsc
549    WRITE(lunout,*) 'lscp_ini, cld_lc_con', cld_lc_con
550    WRITE(lunout,*) 'lscp_ini, cld_lc_lsc_snow', cld_lc_lsc_snow
551    WRITE(lunout,*) 'lscp_ini, cld_lc_con_snow', cld_lc_con_snow
552    WRITE(lunout,*) 'lscp_ini, cld_tau_lsc', cld_tau_lsc
553    WRITE(lunout,*) 'lscp_ini, cld_tau_con', cld_tau_con
554    WRITE(lunout,*) 'lscp_ini, cld_expo_lsc', cld_expo_lsc
555    WRITE(lunout,*) 'lscp_ini, cld_expo_con', cld_expo_con
556    WRITE(lunout,*) 'lscp_ini, ffallv_lsc', ffallv_lsc
557    WRITE(lunout,*) 'lscp_ini, ffallv_con', ffallv_con
558    WRITE(lunout,*) 'lscp_ini, coef_eva', coef_eva
559    WRITE(lunout,*) 'lscp_ini, coef_sub', coef_sub
560    WRITE(lunout,*) 'lscp_ini, expo_eva', expo_eva
561    WRITE(lunout,*) 'lscp_ini, expo_sub', expo_sub
562    WRITE(lunout,*) 'lscp_ini, iflag_autoconversion', iflag_autoconversion
563    WRITE(lunout,*) 'lscp_ini, dist_liq', dist_liq
564    WRITE(lunout,*) 'lscp_ini, tresh_cl', tresh_cl
565    WRITE(lunout,*) 'lscp_ini, capa_crystal', capa_crystal
566    WRITE(lunout,*) 'lscp_ini, naero5', naero5
567    WRITE(lunout,*) 'lscp_ini, gamma_snwretro', gamma_snwretro
568    WRITE(lunout,*) 'lscp_ini, gamma_taud', gamma_taud
569    WRITE(lunout,*) 'lscp_ini, iflag_oldbug_fisrtilp', iflag_oldbug_fisrtilp
570    WRITE(lunout,*) 'lscp_ini, fl_cor_ebil', fl_cor_ebil
571    WRITE(lunout,*) 'lscp_ini, temp_nowater', temp_nowater
572    WRITE(lunout,*) 'lscp_ini, ok_bug_phase_lscp', ok_bug_phase_lscp
573    WRITE(lunout,*) 'lscp_ini, ok_bug_ice_fallspeed', ok_bug_ice_fallspeed
574    ! for poprecip
575    WRITE(lunout,*) 'lscp_ini, ok_poprecip', ok_poprecip
576    WRITE(lunout,*) 'lscp_ini, ok_corr_vap_evasub', ok_corr_vap_evasub
577    WRITE(lunout,*) 'lscp_ini, ok_growth_precip_deposition', ok_growth_precip_deposition
578    WRITE(lunout,*) 'lscp_ini, rain_int_min:', rain_int_min
579    WRITE(lunout,*) 'lscp_ini, gamma_agg:', gamma_agg
580    WRITE(lunout,*) 'lscp_ini, gamma_col:', gamma_col
581    WRITE(lunout,*) 'lscp_ini, gamma_rim:', gamma_rim
582    WRITE(lunout,*) 'lscp_ini, gamma_freez:', gamma_freez
583    WRITE(lunout,*) 'lscp_ini, gamma_melt:', gamma_melt
584    WRITE(lunout,*) 'lscp_ini, tau_auto_snow_max:',tau_auto_snow_max
585    WRITE(lunout,*) 'lscp_ini, tau_auto_snow_min:',tau_auto_snow_min
586    WRITE(lunout,*) 'lscp_ini, r_snow:', r_snow
587    WRITE(lunout,*) 'lscp_ini, rain_fallspeed_clr:', rain_fallspeed_clr
588    WRITE(lunout,*) 'lscp_ini, rain_fallspeed_cld:', rain_fallspeed_cld
589    WRITE(lunout,*) 'lscp_ini, snow_fallspeed_clr:', snow_fallspeed_clr
590    WRITE(lunout,*) 'lscp_ini, snow_fallspeed_cld:', snow_fallspeed_cld
591    WRITE(lunout,*) 'lscp_ini, ok_ice_sedim:', ok_ice_sedim
592    WRITE(lunout,*) 'lscp_ini, fallice_sedim:', fallice_sedim
593    ! for condensation and ice supersaturation
594    WRITE(lunout,*) 'lscp_ini, ok_ice_supersat:', ok_ice_supersat
595    WRITE(lunout,*) 'lscp_ini, ok_unadjusted_clouds:', ok_unadjusted_clouds
596    WRITE(lunout,*) 'lscp_ini, ok_weibull_warm_clouds:', ok_weibull_warm_clouds
597    WRITE(lunout,*) 'lscp_ini, ok_nodeep_lscp:', ok_nodeep_lscp
598    WRITE(lunout,*) 'lscp_ini, ok_nodeep_lscp_rad:', ok_nodeep_lscp_rad
599    WRITE(lunout,*) 'lscp_ini, ffallv_issr', ffallv_issr
600    WRITE(lunout,*) 'lscp_ini, cooling_rate_ice_thresh', cooling_rate_ice_thresh
601    WRITE(lunout,*) 'lscp_ini, depo_coef_cirrus:', depo_coef_cirrus
602    WRITE(lunout,*) 'lscp_ini, capa_cond_cirrus:', capa_cond_cirrus
603    WRITE(lunout,*) 'lscp_ini, N_ice_volume:', N_ice_volume
604    WRITE(lunout,*) 'lscp_ini, nu_iwc_pdf_lscp:', nu_iwc_pdf_lscp
605    WRITE(lunout,*) 'lscp_ini, beta_pdf_lscp:', beta_pdf_lscp
606    WRITE(lunout,*) 'lscp_ini, temp_thresh_pdf_lscp:', temp_thresh_pdf_lscp
607    WRITE(lunout,*) 'lscp_ini, k0_pdf_lscp:', k0_pdf_lscp
608    WRITE(lunout,*) 'lscp_ini, kappa_pdf_lscp:', kappa_pdf_lscp
609    WRITE(lunout,*) 'lscp_ini, std100_pdf_lscp:', std100_pdf_lscp
610    WRITE(lunout,*) 'lscp_ini, a_homofreez:', a_homofreez
611    WRITE(lunout,*) 'lscp_ini, b_homofreez:', b_homofreez
612    WRITE(lunout,*) 'lscp_ini, delta_hetfreez', delta_hetfreez
613    WRITE(lunout,*) 'lscp_ini, aspect_ratio_cirrus:', aspect_ratio_cirrus
614    WRITE(lunout,*) 'lscp_ini, coef_mixing_lscp:', coef_mixing_lscp
615    WRITE(lunout,*) 'lscp_ini, coef_shear_lscp:', coef_shear_lscp
616    ! for aviation
617    WRITE(lunout,*) 'lscp_ini, ok_precip_lincontrails:', ok_precip_lincontrails
618    WRITE(lunout,*) 'lscp_ini, aspect_ratio_lincontrails:', aspect_ratio_lincontrails
619    WRITE(lunout,*) 'lscp_ini, coef_mixing_lincontrails:', coef_mixing_lincontrails
620    WRITE(lunout,*) 'lscp_ini, coef_shear_lincontrails:', coef_shear_lincontrails
621    WRITE(lunout,*) 'lscp_ini, chi_mixing_lincontrails:', chi_mixing_lincontrails
622    WRITE(lunout,*) 'lscp_ini, EI_H2O_aviation:', EI_H2O_aviation
623    WRITE(lunout,*) 'lscp_ini, qheat_fuel_aviation:', qheat_fuel_aviation
624    WRITE(lunout,*) 'lscp_ini, prop_efficiency_aviation:', prop_efficiency_aviation
625    WRITE(lunout,*) 'lscp_ini, linear_contrails_lifetime:', linear_contrails_lifetime
626    WRITE(lunout,*) 'lscp_ini, initial_width_contrails:', initial_width_contrails
627    WRITE(lunout,*) 'lscp_ini, initial_height_contrails:', initial_height_contrails
628    WRITE(lunout,*) 'lscp_ini, aviation_coef:', aviation_coef
629
630
631
632    ! check for precipitation sub-time steps
633    IF (ABS(dtime/REAL(niter_lscp)-360.0).GT.0.001) THEN
634        WRITE(lunout,*) 'lscp: it is not expected, see Z.X.Li', dtime
635        WRITE(lunout,*) 'I would prefer a 6 min sub-timestep'
636    ENDIF
637
638    ! check consistency between numerical resolution of autoconversion
639    ! and other options
640   
641    IF (iflag_autoconversion .EQ. 2) THEN
642        IF ((iflag_vice .NE. 0) .OR. (niter_lscp .GT. 1)) THEN
643           abort_message = 'in lscp, iflag_autoconversion=2 requires iflag_vice=0 and niter_lscp=1'
644           CALL abort_physic (modname,abort_message,1)
645        ENDIF
646    ENDIF
647
648
649    IF ( ok_weibull_warm_clouds .AND. .NOT. ok_ice_supersat ) THEN
650      abort_message = 'in lscp, ok_weibull_warm_clouds=y needs ok_ice_supersat=y'
651      CALL abort_physic (modname,abort_message,1)
652    ENDIF
653
654    IF ( ok_unadjusted_clouds .AND. .NOT. ok_ice_supersat ) THEN
655      abort_message = 'in lscp, ok_unadjusted_clouds=y needs ok_ice_supersat=y'
656      CALL abort_physic (modname,abort_message,1)
657    ENDIF
658
659    !--Calculated here to lighten calculations
660    corr_incld_depsub = GAMMA(nu_iwc_pdf_lscp + 1./3.) / GAMMA(nu_iwc_pdf_lscp) &
661                      / nu_iwc_pdf_lscp**(1./3.)
662
663
664    !AA Temporary initialisation
665    a_tr_sca(1) = -0.5
666    a_tr_sca(2) = -0.5
667    a_tr_sca(3) = -0.5
668    a_tr_sca(4) = -0.5
669   
670    CALL cloudth_ini(iflag_cloudth_vert,iflag_ratqs)
671
672RETURN
673
674END SUBROUTINE lscp_ini
675
676END MODULE lmdz_lscp_ini
Note: See TracBrowser for help on using the repository browser.