[4664] | 1 | MODULE lmdz_lscp_ini |
---|
[4380] | 2 | |
---|
[4654] | 3 | IMPLICIT NONE |
---|
[4380] | 4 | |
---|
| 5 | ! PARAMETERS for lscp: |
---|
| 6 | !-------------------- |
---|
[4535] | 7 | |
---|
[4951] | 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) |
---|
[4869] | 10 | |
---|
[4910] | 11 | REAL, SAVE, PROTECTED :: seuil_neb=0.001 ! cloud fraction threshold: a cloud can precipitate when exceeded |
---|
[4380] | 12 | !$OMP THREADPRIVATE(seuil_neb) |
---|
| 13 | |
---|
[4910] | 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 | |
---|
[4666] | 20 | INTEGER, SAVE :: lunout, prt_level ! Logical unit number and level for standard output |
---|
| 21 | !$OMP THREADPRIVATE(lunout,prt_level) |
---|
| 22 | |
---|
[4803] | 23 | INTEGER, SAVE, PROTECTED :: niter_lscp=5 ! number of iterations to calculate autoconversion to precipitation |
---|
[4559] | 24 | !$OMP THREADPRIVATE(niter_lscp) |
---|
[4380] | 25 | |
---|
[4803] | 26 | INTEGER, SAVE, PROTECTED :: iflag_evap_prec=1 ! precipitation evaporation flag. 0: nothing, 1: "old way", |
---|
[4380] | 27 | ! 2: Max cloud fraction above to calculate the max of reevaporation |
---|
[4563] | 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 |
---|
[4380] | 31 | !$OMP THREADPRIVATE(iflag_evap_prec) |
---|
| 32 | |
---|
[4803] | 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) |
---|
[4380] | 38 | |
---|
[4803] | 39 | REAL, SAVE, PROTECTED :: ztfondue=278.15 ! parameter to calculate melting fraction of precipitation |
---|
| 40 | !$OMP THREADPRIVATE(ztfondue) |
---|
[4380] | 41 | |
---|
[5019] | 42 | REAL, SAVE, PROTECTED :: temp_nowater=235.15 ! temperature below which liquid water no longer exists |
---|
[4803] | 43 | !$OMP THREADPRIVATE(temp_nowater) |
---|
[4380] | 44 | |
---|
[4803] | 45 | REAL, SAVE, PROTECTED :: a_tr_sca(4) ! Variables for tracers temporary: alpha parameter for scavenging, 4 possible scavenging processes |
---|
[4380] | 46 | !$OMP THREADPRIVATE(a_tr_sca) |
---|
| 47 | |
---|
[4910] | 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 | |
---|
[4803] | 51 | LOGICAL, SAVE, PROTECTED :: ok_radocond_snow=.false. ! take into account the mass of ice precip in the cloud ice content seen by radiation |
---|
[4412] | 52 | !$OMP THREADPRIVATE(ok_radocond_snow) |
---|
[4380] | 53 | |
---|
[4803] | 54 | REAL, SAVE, PROTECTED :: t_glace_min=258.0 ! lower-bound temperature parameter for cloud phase determination |
---|
[4535] | 55 | !$OMP THREADPRIVATE(t_glace_min) |
---|
[4420] | 56 | |
---|
[4803] | 57 | REAL, SAVE, PROTECTED :: t_glace_max=273.15 ! upper-bound temperature parameter for cloud phase determination |
---|
[4535] | 58 | !$OMP THREADPRIVATE(t_glace_max) |
---|
| 59 | |
---|
[4803] | 60 | REAL, SAVE, PROTECTED :: exposant_glace=1.0 ! parameter for cloud phase determination |
---|
[4535] | 61 | !$OMP THREADPRIVATE(exposant_glace) |
---|
| 62 | |
---|
[4803] | 63 | INTEGER, SAVE, PROTECTED :: iflag_vice=0 ! which expression for ice crystall fall velocity |
---|
[4535] | 64 | !$OMP THREADPRIVATE(iflag_vice) |
---|
| 65 | |
---|
[4803] | 66 | INTEGER, SAVE, PROTECTED :: iflag_t_glace=0 ! which expression for cloud phase partitioning |
---|
[4535] | 67 | !$OMP THREADPRIVATE(iflag_t_glace) |
---|
| 68 | |
---|
[4803] | 69 | INTEGER, SAVE, PROTECTED :: iflag_cloudth_vert=0 ! option for determining cloud fraction and content in convective boundary layers |
---|
[4535] | 70 | !$OMP THREADPRIVATE(iflag_cloudth_vert) |
---|
| 71 | |
---|
[4803] | 72 | INTEGER, SAVE, PROTECTED :: iflag_gammasat=0 ! which threshold for homogeneous nucleation below -40oC |
---|
[4535] | 73 | !$OMP THREADPRIVATE(iflag_gammasat) |
---|
| 74 | |
---|
[4803] | 75 | INTEGER, SAVE, PROTECTED :: iflag_rain_incloud_vol=0 ! use of volume cloud fraction for rain autoconversion |
---|
[4535] | 76 | !$OMP THREADPRIVATE(iflag_rain_incloud_vol) |
---|
| 77 | |
---|
[4803] | 78 | INTEGER, SAVE, PROTECTED :: iflag_bergeron=0 ! bergeron effect for liquid precipitation treatment |
---|
[4535] | 79 | !$OMP THREADPRIVATE(iflag_bergeron) |
---|
| 80 | |
---|
[4803] | 81 | INTEGER, SAVE, PROTECTED :: iflag_fisrtilp_qsat=0 ! qsat adjustment (iterative) during autoconversion |
---|
[4535] | 82 | !$OMP THREADPRIVATE(iflag_fisrtilp_qsat) |
---|
| 83 | |
---|
[4803] | 84 | INTEGER, SAVE, PROTECTED :: iflag_pdf=0 ! type of subgrid scale qtot pdf |
---|
[4535] | 85 | !$OMP THREADPRIVATE(iflag_pdf) |
---|
| 86 | |
---|
[4803] | 87 | INTEGER, SAVE, PROTECTED :: iflag_autoconversion=0 ! autoconversion option |
---|
[4559] | 88 | !$OMP THREADPRIVATE(iflag_autoconversion) |
---|
| 89 | |
---|
[4803] | 90 | LOGICAL, SAVE, PROTECTED :: reevap_ice=.false. ! no liquid precip for T< threshold |
---|
[4535] | 91 | !$OMP THREADPRIVATE(reevap_ice) |
---|
| 92 | |
---|
[4803] | 93 | REAL, SAVE, PROTECTED :: cld_lc_lsc=2.6e-4 ! liquid autoconversion coefficient, stratiform rain |
---|
[4535] | 94 | !$OMP THREADPRIVATE(cld_lc_lsc) |
---|
| 95 | |
---|
[4803] | 96 | REAL, SAVE, PROTECTED :: cld_lc_con=2.6e-4 ! liquid autoconversion coefficient, convective rain |
---|
[4535] | 97 | !$OMP THREADPRIVATE(cld_lc_con) |
---|
| 98 | |
---|
[4803] | 99 | REAL, SAVE, PROTECTED :: cld_tau_lsc=3600. ! liquid autoconversion timescale, stratiform rain |
---|
[4535] | 100 | !$OMP THREADPRIVATE(cld_tau_lsc) |
---|
| 101 | |
---|
[4803] | 102 | REAL, SAVE, PROTECTED :: cld_tau_con=3600. ! liquid autoconversion timescale, convective rain |
---|
[4535] | 103 | !$OMP THREADPRIVATE(cld_tau_con) |
---|
| 104 | |
---|
[4803] | 105 | REAL, SAVE, PROTECTED :: cld_expo_lsc=2. ! liquid autoconversion threshold exponent, stratiform rain |
---|
[4559] | 106 | !$OMP THREADPRIVATE(cld_expo_lsc) |
---|
| 107 | |
---|
[4803] | 108 | REAL, SAVE, PROTECTED :: cld_expo_con=2. ! liquid autoconversion threshold exponent, convective rain |
---|
[4559] | 109 | !$OMP THREADPRIVATE(cld_expo_con) |
---|
| 110 | |
---|
[4803] | 111 | REAL, SAVE, PROTECTED :: ffallv_lsc=1. ! tuning coefficient crystal fall velocity, stratiform |
---|
[4535] | 112 | !$OMP THREADPRIVATE(ffallv_lsc) |
---|
| 113 | |
---|
[4803] | 114 | REAL, SAVE, PROTECTED :: ffallv_con=1. ! tuning coefficient crystal fall velocity, convective |
---|
[4535] | 115 | !$OMP THREADPRIVATE(ffallv_con) |
---|
| 116 | |
---|
[4803] | 117 | REAL, SAVE, PROTECTED :: coef_eva=2e-5 ! tuning coefficient liquid precip evaporation |
---|
[4535] | 118 | !$OMP THREADPRIVATE(coef_eva) |
---|
| 119 | |
---|
[4830] | 120 | REAL, SAVE, PROTECTED :: coef_sub ! tuning coefficient ice precip sublimation |
---|
| 121 | !$OMP THREADPRIVATE(coef_sub) |
---|
[4535] | 122 | |
---|
[4803] | 123 | REAL, SAVE, PROTECTED :: expo_eva=0.5 ! tuning coefficient liquid precip evaporation |
---|
| 124 | !$OMP THREADPRIVATE(expo_eva) |
---|
[4535] | 125 | |
---|
[4830] | 126 | REAL, SAVE, PROTECTED :: expo_sub ! tuning coefficient ice precip sublimation |
---|
| 127 | !$OMP THREADPRIVATE(expo_sub) |
---|
[4535] | 128 | |
---|
[4803] | 129 | REAL, SAVE, PROTECTED :: cice_velo=1.645 ! factor in the ice fall velocity formulation |
---|
| 130 | !$OMP THREADPRIVATE(cice_velo) |
---|
| 131 | |
---|
| 132 | REAL, SAVE, PROTECTED :: dice_velo=0.16 ! exponent in the ice fall velocity formulation |
---|
| 133 | !$OMP THREADPRIVATE(dice_velo) |
---|
| 134 | |
---|
| 135 | REAL, SAVE, PROTECTED :: dist_liq=300. ! typical deph of cloud-top liquid layer in mpcs |
---|
[4562] | 136 | !$OMP THREADPRIVATE(dist_liq) |
---|
[4535] | 137 | |
---|
[4951] | 138 | REAL, SAVE, PROTECTED :: tresh_cl=0.0 ! cloud fraction threshold for cloud top search |
---|
[4562] | 139 | !$OMP THREADPRIVATE(tresh_cl) |
---|
| 140 | |
---|
[4951] | 141 | !--Parameters for condensation and ice supersaturation |
---|
| 142 | LOGICAL, SAVE, PROTECTED :: ok_external_lognormal=.FALSE. ! if True, the lognormal condensation scheme is calculated in the lmdz_lscp_condensation routine |
---|
| 143 | !$OMP THREADPRIVATE(ok_external_lognormal) |
---|
| 144 | |
---|
| 145 | LOGICAL, SAVE, PROTECTED :: ok_ice_supersat=.FALSE. ! activates the condensation scheme that allows for ice supersaturation |
---|
| 146 | !$OMP THREADPRIVATE(ok_ice_supersat) |
---|
| 147 | |
---|
| 148 | LOGICAL, SAVE, PROTECTED :: ok_unadjusted_clouds=.FALSE. ! if True, relax the saturation adjustment assumption for ice clouds |
---|
| 149 | !$OMP THREADPRIVATE(ok_unadjusted_clouds) |
---|
| 150 | |
---|
| 151 | LOGICAL, SAVE, PROTECTED :: ok_weibull_warm_clouds=.FALSE. ! if True, the weibull condensation scheme replaces the lognormal condensation scheme at positive temperatures |
---|
| 152 | !$OMP THREADPRIVATE(ok_weibull_warm_clouds) |
---|
| 153 | |
---|
| 154 | INTEGER, SAVE, PROTECTED :: iflag_cloud_sublim_pdf=3 ! iflag for the distribution of water inside ice clouds |
---|
| 155 | !$OMP THREADPRIVATE(iflag_cloud_sublim_pdf) |
---|
| 156 | |
---|
| 157 | REAL, SAVE, PROTECTED :: mu_subl_pdf_lscp=1./3. ! [-] shape factor of the gamma distribution of water inside ice clouds |
---|
| 158 | !$OMP THREADPRIVATE(mu_subl_pdf_lscp) |
---|
| 159 | |
---|
[5025] | 160 | REAL, SAVE, PROTECTED :: beta_pdf_lscp=8.75E-4 ! [] tuning coefficient for the standard deviation of the PDF of water vapor in the clear sky region |
---|
[4951] | 161 | !$OMP THREADPRIVATE(beta_pdf_lscp) |
---|
| 162 | |
---|
[5025] | 163 | REAL, SAVE, PROTECTED :: temp_thresh_pdf_lscp=188. ! [K] factor for the PDF fit of water vapor in UTLS - below this temperature, water vapor is homogeneously distributed in the clear sky region |
---|
[4951] | 164 | !$OMP THREADPRIVATE(temp_thresh_pdf_lscp) |
---|
| 165 | |
---|
[5025] | 166 | REAL, SAVE, PROTECTED :: rhlmid_pdf_lscp=52.8 ! [%] factor for the PDF fit of water vapor in UTLS - below this rel hum wrt liq, std increases with RHliq, above it decreases with RHliq |
---|
[4951] | 167 | !$OMP THREADPRIVATE(rhlmid_pdf_lscp) |
---|
| 168 | |
---|
[5025] | 169 | REAL, SAVE, PROTECTED :: k0_pdf_lscp=2.80 ! [-] factor for the PDF fit of water vapor in UTLS |
---|
[4951] | 170 | !$OMP THREADPRIVATE(k0_pdf_lscp) |
---|
| 171 | |
---|
[5025] | 172 | REAL, SAVE, PROTECTED :: kappa_pdf_lscp=0.0236 ! [] factor for the PDF fit of water vapor in UTLS |
---|
[4951] | 173 | !$OMP THREADPRIVATE(kappa_pdf_lscp) |
---|
| 174 | |
---|
[5025] | 175 | REAL, SAVE, PROTECTED :: rhl0_pdf_lscp=88.7 ! [%] factor for the PDF fit of water vapor in UTLS |
---|
[4951] | 176 | !$OMP THREADPRIVATE(rhl0_pdf_lscp) |
---|
| 177 | |
---|
[5025] | 178 | REAL, SAVE, PROTECTED :: cond_thresh_pdf_lscp=1.E-10 ! [-] threshold for the formation of new cloud |
---|
[4951] | 179 | !$OMP THREADPRIVATE(cond_thresh_pdf_lscp) |
---|
| 180 | |
---|
[5025] | 181 | REAL, SAVE, PROTECTED :: a_homofreez=2.349 ! [-] factor for the Koop homogeneous freezing fit |
---|
[4951] | 182 | !$OMP THREADPRIVATE(a_homofreez) |
---|
| 183 | |
---|
[5025] | 184 | REAL, SAVE, PROTECTED :: b_homofreez=259. ! [K] factor for the Koop homogeneous freezing fit |
---|
[4951] | 185 | !$OMP THREADPRIVATE(b_homofreez) |
---|
| 186 | |
---|
| 187 | REAL, SAVE, PROTECTED :: delta_hetfreez=1. ! [-] value between 0 and 1 to simulate for heterogeneous freezing. |
---|
| 188 | !$OMP THREADPRIVATE(delta_hetfreez) |
---|
| 189 | |
---|
[5025] | 190 | REAL, SAVE, PROTECTED :: coef_mixing_lscp=1e-7 ! [-] tuning coefficient for the mixing process |
---|
[4951] | 191 | !$OMP THREADPRIVATE(coef_mixing_lscp) |
---|
| 192 | |
---|
[5025] | 193 | REAL, SAVE, PROTECTED :: coef_shear_lscp=0.1 ! [-] additional coefficient for the shearing process (subprocess of the mixing process) |
---|
[4951] | 194 | !$OMP THREADPRIVATE(coef_shear_lscp) |
---|
| 195 | |
---|
[5025] | 196 | REAL, SAVE, PROTECTED :: chi_mixing_lscp=1.1 ! [-] factor for the macro distribution of ISSRs wrt clouds in a gridbox |
---|
[4951] | 197 | !$OMP THREADPRIVATE(chi_mixing_lscp) |
---|
| 198 | |
---|
| 199 | ! REAL, SAVE, PROTECTED :: contrail_cross_section=200000. |
---|
| 200 | ! !$OMP THREADPRIVATE(contrail_cross_section) |
---|
| 201 | !--End of the parameters for condensation and ice supersaturation |
---|
| 202 | |
---|
[4803] | 203 | !--Parameters for poprecip |
---|
| 204 | LOGICAL, SAVE, PROTECTED :: ok_poprecip=.FALSE. ! use the processes-oriented formulation of precipitations |
---|
| 205 | !$OMP THREADPRIVATE(ok_poprecip) |
---|
| 206 | |
---|
[4913] | 207 | LOGICAL, SAVE, PROTECTED :: ok_corr_vap_evasub=.FALSE. ! use the corrected version of clear-sky water vapor for the evap / subl processes |
---|
| 208 | !$OMP THREADPRIVATE(ok_corr_vap_evasub) |
---|
| 209 | |
---|
[4898] | 210 | REAL, SAVE, PROTECTED :: cld_lc_lsc_snow=2.e-5 ! snow autoconversion coefficient, stratiform. default from Chaboureau and PInty 2006 |
---|
[4830] | 211 | !$OMP THREADPRIVATE(cld_lc_lsc_snow) |
---|
| 212 | |
---|
[4898] | 213 | REAL, SAVE, PROTECTED :: cld_lc_con_snow=2.e-5 ! snow autoconversion coefficient, convective |
---|
[4830] | 214 | !$OMP THREADPRIVATE(cld_lc_con_snow) |
---|
| 215 | |
---|
[4885] | 216 | REAL, SAVE, PROTECTED :: rain_int_min=1.e-5 ! Minimum local rain intensity [mm/s] before the decrease in associated precipitation fraction |
---|
[4803] | 217 | !$OMP THREADPRIVATE(rain_int_min) |
---|
| 218 | |
---|
| 219 | REAL, SAVE, PROTECTED :: thresh_precip_frac=1.E-6 ! precipitation fraction threshold TODO [-] |
---|
| 220 | !$OMP THREADPRIVATE(thresh_precip_frac) |
---|
| 221 | |
---|
| 222 | REAL, SAVE, PROTECTED :: gamma_col=1. ! A COMMENTER TODO [-] |
---|
| 223 | !$OMP THREADPRIVATE(gamma_col) |
---|
| 224 | |
---|
| 225 | REAL, SAVE, PROTECTED :: gamma_agg=1. ! A COMMENTER TODO [-] |
---|
| 226 | !$OMP THREADPRIVATE(gamma_agg) |
---|
| 227 | |
---|
| 228 | REAL, SAVE, PROTECTED :: gamma_rim=1. ! A COMMENTER TODO [-] |
---|
| 229 | !$OMP THREADPRIVATE(gamma_rim) |
---|
| 230 | |
---|
| 231 | REAL, SAVE, PROTECTED :: rho_rain=1000. ! A COMMENTER TODO [kg/m3] |
---|
| 232 | !$OMP THREADPRIVATE(rho_rain) |
---|
| 233 | |
---|
[4832] | 234 | REAL, SAVE, PROTECTED :: rho_ice=920. ! A COMMENTER TODO [kg/m3] |
---|
| 235 | !$OMP THREADPRIVATE(rho_ice) |
---|
| 236 | |
---|
[4809] | 237 | REAL, SAVE, PROTECTED :: r_rain=500.E-6 ! A COMMENTER TODO [m] |
---|
[4803] | 238 | !$OMP THREADPRIVATE(r_rain) |
---|
| 239 | |
---|
[4809] | 240 | REAL, SAVE, PROTECTED :: r_snow=1.E-3 ! A COMMENTER TODO [m] |
---|
[4803] | 241 | !$OMP THREADPRIVATE(r_snow) |
---|
| 242 | |
---|
[4830] | 243 | REAL, SAVE, PROTECTED :: tau_auto_snow_min=100. ! A COMMENTER TODO [s] |
---|
[4803] | 244 | !$OMP THREADPRIVATE(tau_auto_snow_min) |
---|
| 245 | |
---|
[4830] | 246 | REAL, SAVE, PROTECTED :: tau_auto_snow_max=1000. ! A COMMENTER TODO [s] |
---|
[4803] | 247 | !$OMP THREADPRIVATE(tau_auto_snow_max) |
---|
| 248 | |
---|
| 249 | REAL, SAVE, PROTECTED :: eps=1.E-10 ! A COMMENTER TODO [-] |
---|
| 250 | !$OMP THREADPRIVATE(eps) |
---|
[4818] | 251 | |
---|
[4895] | 252 | REAL, SAVE, PROTECTED :: gamma_melt=1. ! A COMMENTER TODO [-] |
---|
| 253 | !$OMP THREADPRIVATE(gamma_melt) |
---|
[4818] | 254 | |
---|
| 255 | REAL, SAVE, PROTECTED :: alpha_freez=4. ! A COMMENTER TODO [-] |
---|
| 256 | !$OMP THREADPRIVATE(alpha_freez) |
---|
| 257 | |
---|
[4830] | 258 | REAL, SAVE, PROTECTED :: beta_freez=0.1 ! A COMMENTER TODO [m-3.s-1] |
---|
| 259 | !$OMP THREADPRIVATE(beta_freez) |
---|
| 260 | |
---|
| 261 | REAL, SAVE, PROTECTED :: gamma_freez=1. ! A COMMENTER TODO [-] |
---|
[4818] | 262 | !$OMP THREADPRIVATE(gamma_freez) |
---|
[4830] | 263 | |
---|
| 264 | REAL, SAVE, PROTECTED :: rain_fallspeed=4. ! A COMMENTER TODO [m/s] |
---|
| 265 | !$OMP THREADPRIVATE(rain_fallspeed) |
---|
| 266 | |
---|
| 267 | REAL, SAVE, PROTECTED :: rain_fallspeed_clr ! A COMMENTER TODO [m/s] |
---|
| 268 | !$OMP THREADPRIVATE(rain_fallspeed_clr) |
---|
| 269 | |
---|
| 270 | REAL, SAVE, PROTECTED :: rain_fallspeed_cld ! A COMMENTER TODO [m/s] |
---|
| 271 | !$OMP THREADPRIVATE(rain_fallspeed_cld) |
---|
| 272 | |
---|
| 273 | REAL, SAVE, PROTECTED :: snow_fallspeed=1. ! A COMMENTER TODO [m/s] |
---|
| 274 | !$OMP THREADPRIVATE(snow_fallspeed) |
---|
| 275 | |
---|
| 276 | REAL, SAVE, PROTECTED :: snow_fallspeed_clr ! A COMMENTER TODO [m/s] |
---|
| 277 | !$OMP THREADPRIVATE(snow_fallspeed_clr) |
---|
| 278 | |
---|
| 279 | REAL, SAVE, PROTECTED :: snow_fallspeed_cld ! A COMMENTER TODO [m/s] |
---|
| 280 | !$OMP THREADPRIVATE(snow_fallspeed_cld) |
---|
[4803] | 281 | !--End of the parameters for poprecip |
---|
| 282 | |
---|
[4666] | 283 | ! Two parameters used for lmdz_lscp_old only |
---|
[4803] | 284 | INTEGER, SAVE, PROTECTED :: iflag_oldbug_fisrtilp=0, fl_cor_ebil |
---|
[4666] | 285 | !$OMP THREADPRIVATE(iflag_oldbug_fisrtilp,fl_cor_ebil) |
---|
| 286 | |
---|
[4380] | 287 | CONTAINS |
---|
| 288 | |
---|
[4951] | 289 | SUBROUTINE lscp_ini(dtime,lunout_in,prt_level_in,ok_ice_supersat_in, iflag_ratqs, fl_cor_ebil_in, & |
---|
| 290 | RCPD_in, RLSTT_in, RLVTT_in, RLMLT_in, RVTMP2_in, & |
---|
| 291 | RTT_in, RD_in, RV_in, RG_in, RPI_in, EPS_W_in) |
---|
[4380] | 292 | |
---|
| 293 | |
---|
| 294 | USE ioipsl_getin_p_mod, ONLY : getin_p |
---|
[4651] | 295 | USE lmdz_cloudth_ini, ONLY : cloudth_ini |
---|
[4380] | 296 | |
---|
| 297 | REAL, INTENT(IN) :: dtime |
---|
[4666] | 298 | INTEGER, INTENT(IN) :: lunout_in,prt_level_in,iflag_ratqs,fl_cor_ebil_in |
---|
[4951] | 299 | LOGICAL, INTENT(IN) :: ok_ice_supersat_in |
---|
[4380] | 300 | |
---|
[4535] | 301 | REAL, INTENT(IN) :: RCPD_in, RLSTT_in, RLVTT_in, RLMLT_in |
---|
[4951] | 302 | REAL, INTENT(IN) :: RVTMP2_in, RTT_in, RD_in, RV_in, RG_in, RPI_in, EPS_W_in |
---|
[4559] | 303 | character (len=20) :: modname='lscp_ini_mod' |
---|
| 304 | character (len=80) :: abort_message |
---|
[4535] | 305 | |
---|
| 306 | |
---|
[4666] | 307 | lunout=lunout_in |
---|
| 308 | prt_level=prt_level_in |
---|
| 309 | fl_cor_ebil=fl_cor_ebil_in |
---|
| 310 | |
---|
[4951] | 311 | ok_ice_supersat=ok_ice_supersat_in |
---|
| 312 | |
---|
[4535] | 313 | RG=RG_in |
---|
| 314 | RD=RD_in |
---|
[4951] | 315 | RV=RV_in |
---|
[4535] | 316 | RCPD=RCPD_in |
---|
| 317 | RLVTT=RLVTT_in |
---|
| 318 | RLSTT=RLSTT_in |
---|
| 319 | RLMLT=RLMLT_in |
---|
| 320 | RTT=RTT_in |
---|
| 321 | RG=RG_in |
---|
| 322 | RVTMP2=RVTMP2_in |
---|
[4818] | 323 | RPI=RPI_in |
---|
[4951] | 324 | EPS_W=EPS_W_in |
---|
[4535] | 325 | |
---|
| 326 | |
---|
| 327 | |
---|
[4559] | 328 | CALL getin_p('niter_lscp',niter_lscp) |
---|
[4380] | 329 | CALL getin_p('iflag_evap_prec',iflag_evap_prec) |
---|
| 330 | CALL getin_p('seuil_neb',seuil_neb) |
---|
[4420] | 331 | CALL getin_p('ok_radocond_snow',ok_radocond_snow) |
---|
[4535] | 332 | CALL getin_p('t_glace_max',t_glace_max) |
---|
| 333 | CALL getin_p('t_glace_min',t_glace_min) |
---|
| 334 | CALL getin_p('exposant_glace',exposant_glace) |
---|
| 335 | CALL getin_p('iflag_vice',iflag_vice) |
---|
| 336 | CALL getin_p('iflag_t_glace',iflag_t_glace) |
---|
| 337 | CALL getin_p('iflag_cloudth_vert',iflag_cloudth_vert) |
---|
| 338 | CALL getin_p('iflag_gammasat',iflag_gammasat) |
---|
| 339 | CALL getin_p('iflag_rain_incloud_vol',iflag_rain_incloud_vol) |
---|
| 340 | CALL getin_p('iflag_bergeron',iflag_bergeron) |
---|
| 341 | CALL getin_p('iflag_fisrtilp_qsat',iflag_fisrtilp_qsat) |
---|
| 342 | CALL getin_p('iflag_pdf',iflag_pdf) |
---|
| 343 | CALL getin_p('reevap_ice',reevap_ice) |
---|
| 344 | CALL getin_p('cld_lc_lsc',cld_lc_lsc) |
---|
| 345 | CALL getin_p('cld_lc_con',cld_lc_con) |
---|
[4830] | 346 | CALL getin_p('cld_lc_lsc_snow',cld_lc_lsc_snow) |
---|
| 347 | CALL getin_p('cld_lc_con_snow',cld_lc_con_snow) |
---|
[4535] | 348 | CALL getin_p('cld_tau_lsc',cld_tau_lsc) |
---|
| 349 | CALL getin_p('cld_tau_con',cld_tau_con) |
---|
[4559] | 350 | CALL getin_p('cld_expo_lsc',cld_expo_lsc) |
---|
| 351 | CALL getin_p('cld_expo_con',cld_expo_con) |
---|
[4535] | 352 | CALL getin_p('ffallv_lsc',ffallv_lsc) |
---|
| 353 | CALL getin_p('ffallv_lsc',ffallv_con) |
---|
| 354 | CALL getin_p('coef_eva',coef_eva) |
---|
[4830] | 355 | coef_sub=coef_eva |
---|
| 356 | CALL getin_p('coef_eva_i',coef_sub) |
---|
| 357 | CALL getin_p('coef_sub',coef_sub) |
---|
[4803] | 358 | CALL getin_p('expo_eva',expo_eva) |
---|
[4830] | 359 | expo_sub=expo_eva |
---|
| 360 | CALL getin_p('expo_sub',expo_sub) |
---|
[4559] | 361 | CALL getin_p('iflag_autoconversion',iflag_autoconversion) |
---|
[4562] | 362 | CALL getin_p('dist_liq',dist_liq) |
---|
| 363 | CALL getin_p('tresh_cl',tresh_cl) |
---|
[4666] | 364 | CALL getin_p('iflag_oldbug_fisrtilp',iflag_oldbug_fisrtilp) |
---|
[5019] | 365 | CALL getin_p('temp_nowater',temp_nowater) |
---|
[4951] | 366 | ! for poprecip |
---|
[4803] | 367 | CALL getin_p('ok_poprecip',ok_poprecip) |
---|
[4913] | 368 | CALL getin_p('ok_corr_vap_evasub',ok_corr_vap_evasub) |
---|
[4803] | 369 | CALL getin_p('rain_int_min',rain_int_min) |
---|
| 370 | CALL getin_p('gamma_agg',gamma_agg) |
---|
| 371 | CALL getin_p('gamma_col',gamma_col) |
---|
[4818] | 372 | CALL getin_p('gamma_rim',gamma_rim) |
---|
[4830] | 373 | CALL getin_p('gamma_freez',gamma_freez) |
---|
[4895] | 374 | CALL getin_p('gamma_melt',gamma_melt) |
---|
[4830] | 375 | CALL getin_p('r_snow',r_snow) |
---|
| 376 | CALL getin_p('rain_fallspeed',rain_fallspeed) |
---|
| 377 | rain_fallspeed_clr=rain_fallspeed |
---|
| 378 | rain_fallspeed_cld=rain_fallspeed |
---|
| 379 | CALL getin_p('rain_fallspeed_clr',rain_fallspeed_clr) |
---|
| 380 | CALL getin_p('rain_fallspeed_cld',rain_fallspeed_cld) |
---|
| 381 | CALL getin_p('snow_fallspeed',snow_fallspeed) |
---|
| 382 | snow_fallspeed_clr=snow_fallspeed |
---|
| 383 | snow_fallspeed_cld=snow_fallspeed |
---|
| 384 | CALL getin_p('snow_fallspeed_clr',snow_fallspeed_clr) |
---|
| 385 | CALL getin_p('snow_fallspeed_cld',snow_fallspeed_cld) |
---|
[4951] | 386 | ! for condensation and ice supersaturation |
---|
| 387 | CALL getin_p('ok_external_lognormal',ok_external_lognormal) |
---|
| 388 | CALL getin_p('ok_unadjusted_clouds',ok_unadjusted_clouds) |
---|
| 389 | CALL getin_p('ok_weibull_warm_clouds',ok_weibull_warm_clouds) |
---|
| 390 | CALL getin_p('iflag_cloud_sublim_pdf',iflag_cloud_sublim_pdf) |
---|
| 391 | CALL getin_p('mu_subl_pdf_lscp',mu_subl_pdf_lscp) |
---|
| 392 | CALL getin_p('beta_pdf_lscp',beta_pdf_lscp) |
---|
| 393 | CALL getin_p('temp_thresh_pdf_lscp',temp_thresh_pdf_lscp) |
---|
| 394 | CALL getin_p('rhlmid_pdf_lscp',rhlmid_pdf_lscp) |
---|
| 395 | CALL getin_p('k0_pdf_lscp',k0_pdf_lscp) |
---|
| 396 | CALL getin_p('kappa_pdf_lscp',kappa_pdf_lscp) |
---|
| 397 | CALL getin_p('rhl0_pdf_lscp',rhl0_pdf_lscp) |
---|
| 398 | CALL getin_p('cond_thresh_pdf_lscp',cond_thresh_pdf_lscp) |
---|
| 399 | CALL getin_p('a_homofreez',a_homofreez) |
---|
| 400 | CALL getin_p('b_homofreez',b_homofreez) |
---|
| 401 | CALL getin_p('delta_hetfreez',delta_hetfreez) |
---|
| 402 | CALL getin_p('coef_mixing_lscp',coef_mixing_lscp) |
---|
| 403 | CALL getin_p('coef_shear_lscp',coef_shear_lscp) |
---|
| 404 | CALL getin_p('chi_mixing_lscp',chi_mixing_lscp) |
---|
| 405 | !CALL getin_p('contrail_cross_section',contrail_cross_section) |
---|
[4535] | 406 | |
---|
| 407 | |
---|
| 408 | |
---|
[4666] | 409 | WRITE(lunout,*) 'lscp_ini, niter_lscp:', niter_lscp |
---|
| 410 | WRITE(lunout,*) 'lscp_ini, iflag_evap_prec:', iflag_evap_prec |
---|
| 411 | WRITE(lunout,*) 'lscp_ini, seuil_neb:', seuil_neb |
---|
| 412 | WRITE(lunout,*) 'lscp_ini, ok_radocond_snow:', ok_radocond_snow |
---|
| 413 | WRITE(lunout,*) 'lscp_ini, t_glace_max:', t_glace_max |
---|
| 414 | WRITE(lunout,*) 'lscp_ini, t_glace_min:', t_glace_min |
---|
| 415 | WRITE(lunout,*) 'lscp_ini, exposant_glace:', exposant_glace |
---|
| 416 | WRITE(lunout,*) 'lscp_ini, iflag_vice:', iflag_vice |
---|
| 417 | WRITE(lunout,*) 'lscp_ini, iflag_t_glace:', iflag_t_glace |
---|
| 418 | WRITE(lunout,*) 'lscp_ini, iflag_cloudth_vert:', iflag_cloudth_vert |
---|
| 419 | WRITE(lunout,*) 'lscp_ini, iflag_gammasat:', iflag_gammasat |
---|
| 420 | WRITE(lunout,*) 'lscp_ini, iflag_rain_incloud_vol:', iflag_rain_incloud_vol |
---|
| 421 | WRITE(lunout,*) 'lscp_ini, iflag_bergeron:', iflag_bergeron |
---|
| 422 | WRITE(lunout,*) 'lscp_ini, iflag_fisrtilp_qsat:', iflag_fisrtilp_qsat |
---|
| 423 | WRITE(lunout,*) 'lscp_ini, iflag_pdf', iflag_pdf |
---|
| 424 | WRITE(lunout,*) 'lscp_ini, reevap_ice', reevap_ice |
---|
| 425 | WRITE(lunout,*) 'lscp_ini, cld_lc_lsc', cld_lc_lsc |
---|
| 426 | WRITE(lunout,*) 'lscp_ini, cld_lc_con', cld_lc_con |
---|
[4830] | 427 | WRITE(lunout,*) 'lscp_ini, cld_lc_lsc_snow', cld_lc_lsc_snow |
---|
| 428 | WRITE(lunout,*) 'lscp_ini, cld_lc_con_snow', cld_lc_con_snow |
---|
[4666] | 429 | WRITE(lunout,*) 'lscp_ini, cld_tau_lsc', cld_tau_lsc |
---|
| 430 | WRITE(lunout,*) 'lscp_ini, cld_tau_con', cld_tau_con |
---|
| 431 | WRITE(lunout,*) 'lscp_ini, cld_expo_lsc', cld_expo_lsc |
---|
| 432 | WRITE(lunout,*) 'lscp_ini, cld_expo_con', cld_expo_con |
---|
| 433 | WRITE(lunout,*) 'lscp_ini, ffallv_lsc', ffallv_lsc |
---|
| 434 | WRITE(lunout,*) 'lscp_ini, ffallv_con', ffallv_con |
---|
| 435 | WRITE(lunout,*) 'lscp_ini, coef_eva', coef_eva |
---|
[4830] | 436 | WRITE(lunout,*) 'lscp_ini, coef_sub', coef_sub |
---|
[4803] | 437 | WRITE(lunout,*) 'lscp_ini, expo_eva', expo_eva |
---|
[4830] | 438 | WRITE(lunout,*) 'lscp_ini, expo_sub', expo_sub |
---|
[4666] | 439 | WRITE(lunout,*) 'lscp_ini, iflag_autoconversion', iflag_autoconversion |
---|
| 440 | WRITE(lunout,*) 'lscp_ini, dist_liq', dist_liq |
---|
| 441 | WRITE(lunout,*) 'lscp_ini, tresh_cl', tresh_cl |
---|
| 442 | WRITE(lunout,*) 'lscp_ini, iflag_oldbug_fisrtilp', iflag_oldbug_fisrtilp |
---|
| 443 | WRITE(lunout,*) 'lscp_ini, fl_cor_ebil', fl_cor_ebil |
---|
[5019] | 444 | WRITE(lunout,*) 'lscp_ini, temp_nowater', temp_nowater |
---|
[4951] | 445 | ! for poprecip |
---|
[4803] | 446 | WRITE(lunout,*) 'lscp_ini, ok_poprecip', ok_poprecip |
---|
[4913] | 447 | WRITE(lunout,*) 'lscp_ini, ok_corr_vap_evasub', ok_corr_vap_evasub |
---|
[4803] | 448 | WRITE(lunout,*) 'lscp_ini, rain_int_min:', rain_int_min |
---|
| 449 | WRITE(lunout,*) 'lscp_ini, gamma_agg:', gamma_agg |
---|
| 450 | WRITE(lunout,*) 'lscp_ini, gamma_col:', gamma_col |
---|
[4818] | 451 | WRITE(lunout,*) 'lscp_ini, gamma_rim:', gamma_rim |
---|
[4830] | 452 | WRITE(lunout,*) 'lscp_ini, gamma_freez:', gamma_freez |
---|
[4895] | 453 | WRITE(lunout,*) 'lscp_ini, gamma_melt:', gamma_melt |
---|
[4830] | 454 | WRITE(lunout,*) 'lscp_ini, r_snow:', r_snow |
---|
| 455 | WRITE(lunout,*) 'lscp_ini, rain_fallspeed_clr:', rain_fallspeed_clr |
---|
| 456 | WRITE(lunout,*) 'lscp_ini, rain_fallspeed_cld:', rain_fallspeed_cld |
---|
| 457 | WRITE(lunout,*) 'lscp_ini, snow_fallspeed_clr:', snow_fallspeed_clr |
---|
| 458 | WRITE(lunout,*) 'lscp_ini, snow_fallspeed_cld:', snow_fallspeed_cld |
---|
[4951] | 459 | ! for condensation and ice supersaturation |
---|
| 460 | WRITE(lunout,*) 'lscp_ini, ok_external_lognormal:', ok_external_lognormal |
---|
| 461 | WRITE(lunout,*) 'lscp_ini, ok_ice_supersat:', ok_ice_supersat |
---|
| 462 | WRITE(lunout,*) 'lscp_ini, ok_unadjusted_clouds:', ok_unadjusted_clouds |
---|
| 463 | WRITE(lunout,*) 'lscp_ini, ok_weibull_warm_clouds:', ok_weibull_warm_clouds |
---|
| 464 | WRITE(lunout,*) 'lscp_ini, iflag_cloud_sublim_pdf:', iflag_cloud_sublim_pdf |
---|
| 465 | WRITE(lunout,*) 'lscp_ini, mu_subl_pdf_lscp:', mu_subl_pdf_lscp |
---|
| 466 | WRITE(lunout,*) 'lscp_ini, beta_pdf_lscp:', beta_pdf_lscp |
---|
| 467 | WRITE(lunout,*) 'lscp_ini, temp_thresh_pdf_lscp:', temp_thresh_pdf_lscp |
---|
| 468 | WRITE(lunout,*) 'lscp_ini, rhlmid_pdf_lscp:', rhlmid_pdf_lscp |
---|
| 469 | WRITE(lunout,*) 'lscp_ini, k0_pdf_lscp:', k0_pdf_lscp |
---|
| 470 | WRITE(lunout,*) 'lscp_ini, kappa_pdf_lscp:', kappa_pdf_lscp |
---|
| 471 | WRITE(lunout,*) 'lscp_ini, rhl0_pdf_lscp:', rhl0_pdf_lscp |
---|
| 472 | WRITE(lunout,*) 'lscp_ini, a_homofreez:', a_homofreez |
---|
| 473 | WRITE(lunout,*) 'lscp_ini, b_homofreez:', b_homofreez |
---|
| 474 | WRITE(lunout,*) 'lscp_ini, delta_hetfreez', delta_hetfreez |
---|
| 475 | WRITE(lunout,*) 'lscp_ini, coef_mixing_lscp:', coef_mixing_lscp |
---|
| 476 | WRITE(lunout,*) 'lscp_ini, coef_shear_lscp:', coef_shear_lscp |
---|
| 477 | WRITE(lunout,*) 'lscp_ini, chi_mixing_lscp:', chi_mixing_lscp |
---|
| 478 | ! WRITE(lunout,*) 'lscp_ini, contrail_cross_section:', contrail_cross_section |
---|
[4420] | 479 | |
---|
[4535] | 480 | |
---|
| 481 | |
---|
| 482 | |
---|
| 483 | |
---|
[4380] | 484 | ! check for precipitation sub-time steps |
---|
[4559] | 485 | IF (ABS(dtime/REAL(niter_lscp)-360.0).GT.0.001) THEN |
---|
[4380] | 486 | WRITE(lunout,*) 'lscp: it is not expected, see Z.X.Li', dtime |
---|
| 487 | WRITE(lunout,*) 'I would prefer a 6 min sub-timestep' |
---|
| 488 | ENDIF |
---|
| 489 | |
---|
[4559] | 490 | ! check consistency between numerical resolution of autoconversion |
---|
| 491 | ! and other options |
---|
| 492 | |
---|
| 493 | IF (iflag_autoconversion .EQ. 2) THEN |
---|
| 494 | IF ((iflag_vice .NE. 0) .OR. (niter_lscp .GT. 1)) THEN |
---|
| 495 | abort_message = 'in lscp, iflag_autoconversion=2 requires iflag_vice=0 and niter_lscp=1' |
---|
| 496 | CALL abort_physic (modname,abort_message,1) |
---|
| 497 | ENDIF |
---|
| 498 | ENDIF |
---|
[4380] | 499 | |
---|
[4559] | 500 | |
---|
[4951] | 501 | !--Check flags for condensation and ice supersaturation |
---|
| 502 | IF ( ok_external_lognormal .AND. ok_ice_supersat ) THEN |
---|
| 503 | abort_message = 'in lscp, ok_external_lognormal=y is incompatible with ok_ice_supersat=y' |
---|
| 504 | CALL abort_physic (modname,abort_message,1) |
---|
| 505 | ENDIF |
---|
| 506 | |
---|
| 507 | IF ( ok_weibull_warm_clouds .AND. .NOT. ok_ice_supersat ) THEN |
---|
| 508 | abort_message = 'in lscp, ok_weibull_warm_clouds=y needs ok_ice_supersat=y' |
---|
| 509 | CALL abort_physic (modname,abort_message,1) |
---|
| 510 | ENDIF |
---|
| 511 | |
---|
| 512 | IF ( ok_unadjusted_clouds .AND. .NOT. ok_ice_supersat ) THEN |
---|
| 513 | abort_message = 'in lscp, ok_unadjusted_clouds=y needs ok_ice_supersat=y' |
---|
| 514 | CALL abort_physic (modname,abort_message,1) |
---|
| 515 | ENDIF |
---|
| 516 | |
---|
| 517 | |
---|
[4380] | 518 | !AA Temporary initialisation |
---|
| 519 | a_tr_sca(1) = -0.5 |
---|
| 520 | a_tr_sca(2) = -0.5 |
---|
| 521 | a_tr_sca(3) = -0.5 |
---|
| 522 | a_tr_sca(4) = -0.5 |
---|
| 523 | |
---|
[4651] | 524 | CALL cloudth_ini(iflag_cloudth_vert,iflag_ratqs) |
---|
[4380] | 525 | |
---|
[4654] | 526 | RETURN |
---|
[4380] | 527 | |
---|
[4654] | 528 | END SUBROUTINE lscp_ini |
---|
| 529 | |
---|
[4664] | 530 | END MODULE lmdz_lscp_ini |
---|