Changeset 4489 for LMDZ6/trunk/libf/phylmd/ecrad/radiation_mcica_sw.F90
- Timestamp:
- Mar 31, 2023, 8:42:57 PM (16 months ago)
- Location:
- LMDZ6/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk
- Property svn:mergeinfo changed
/LMDZ6/branches/LMDZ_ECRad (added) merged: 4175,4177-4183,4188,4192,4200-4203,4355,4366,4387-4388,4390,4444,4482,4486,4488
- Property svn:mergeinfo changed
-
LMDZ6/trunk/libf/phylmd/ecrad/radiation_mcica_sw.F90
r3908 r4489 211 211 & config%cloud_inhom_decorr_scaling, cloud%fractional_std(jcol,:), & 212 212 & config%pdf_sampler, od_scaling, total_cloud_cover, & 213 & is_beta_overlap=config%use_beta_overlap) 213 & use_beta_overlap=config%use_beta_overlap, & 214 & use_vectorizable_generator=config%use_vectorizable_generator) 214 215 215 216 ! Store total cloud cover … … 221 222 ! Compute combined gas+aerosol+cloud optical properties 222 223 if (cloud%fraction(jcol,jlev) >= config%cloud_fraction_threshold) then 223 od_cloud_new = od_scaling(:,jlev) &224 & * od_cloud(config%i_band_from_reordered_g_sw,jlev,jcol)225 od_total = od(:,jlev,jcol) + od_cloud_new226 ssa_total = 0.0_jprb227 g_total = 0.0_jprb228 ! In single precision we need to protect against the229 ! case that od_total > 0.0 and ssa_total > 0.0 but230 ! od_total*ssa_total == 0 due to underflow231 224 do jg = 1,ng 225 od_cloud_new(jg) = od_scaling(jg,jlev) & 226 & * od_cloud(config%i_band_from_reordered_g_sw(jg),jlev,jcol) 227 od_total(jg) = od(jg,jlev,jcol) + od_cloud_new(jg) 228 ssa_total(jg) = 0.0_jprb 229 g_total(jg) = 0.0_jprb 230 231 ! In single precision we need to protect against the 232 ! case that od_total > 0.0 and ssa_total > 0.0 but 233 ! od_total*ssa_total == 0 due to underflow 232 234 if (od_total(jg) > 0.0_jprb) then 233 235 scat_od = ssa(jg,jlev,jcol)*od(jg,jlev,jcol) &
Note: See TracChangeset
for help on using the changeset viewer.