- Timestamp:
- Sep 11, 2024, 4:27:07 PM (5 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/ecrad.v1.5.1/radiation_cloud_generator.F90
r5159 r5185 213 213 trigger = rand_top(jg) * total_cloud_cover 214 214 jlev = ibegin 215 DO while (trigger > cum_cloud_cover(jlev) . and. jlev < iend)215 DO while (trigger > cum_cloud_cover(jlev) .AND. jlev < iend) 216 216 jlev = jlev + 1 217 217 end do … … 689 689 690 690 ! For each spectral interval, has the first cloud appeared at this level? 691 first_cloud(jg) = (trigger(jg) <= cum_cloud_cover(jlev) . and. .not. found_cloud(jg))691 first_cloud(jg) = (trigger(jg) <= cum_cloud_cover(jlev) .AND. .not. found_cloud(jg)) 692 692 693 693 ! ...if so, add to found_cloud … … 699 699 ! prev_cloud) 700 700 is_cloud(jg) = first_cloud(jg) & 701 & .or. found_cloud(jg) . and. merge(rand_cloud(jg,jlev)*frac(jlev-1) &701 & .or. found_cloud(jg) .AND. merge(rand_cloud(jg,jlev)*frac(jlev-1) & 702 702 & < frac(jlev)+frac(jlev-1)-pair_cloud_cover(jlev-1), & 703 703 & rand_cloud(jg,jlev)*(cum_cloud_cover(jlev-1) - frac(jlev-1)) & … … 712 712 rand_inhom(jg,jlev) = merge(merge(rand_inhom(jg,jlev-1), rand_inhom(jg,jlev), & 713 713 & rand_inhom2(jg,jlev) < overlap_param_inhom(jlev-1) & 714 & . and. prev_cloud(jg)), &714 & .AND. prev_cloud(jg)), & 715 715 & 0.0_jprb, is_cloud(jg)) 716 716 end do
Note: See TracChangeset
for help on using the changeset viewer.