Ignore:
Timestamp:
Sep 11, 2024, 4:27:07 PM (5 months ago)
Author:
abarral
Message:

Replace REPROBUS CPP KEY by logical using handmade wonky wrapper

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/phylmd/ecrad.v1.5.1/radiation_cloud_generator.F90

    r5159 r5185  
    213213          trigger = rand_top(jg) * total_cloud_cover
    214214          jlev = ibegin
    215           DO while (trigger > cum_cloud_cover(jlev) .and. jlev < iend)
     215          DO while (trigger > cum_cloud_cover(jlev) .AND. jlev < iend)
    216216            jlev = jlev + 1
    217217          end do
     
    689689
    690690          ! 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))
    692692
    693693          ! ...if so, add to found_cloud
     
    699699          ! prev_cloud)
    700700          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) &
    702702               &               < frac(jlev)+frac(jlev-1)-pair_cloud_cover(jlev-1), &
    703703               &             rand_cloud(jg,jlev)*(cum_cloud_cover(jlev-1) - frac(jlev-1)) &
     
    712712          rand_inhom(jg,jlev) = merge(merge(rand_inhom(jg,jlev-1), rand_inhom(jg,jlev), &
    713713               &                           rand_inhom2(jg,jlev) < overlap_param_inhom(jlev-1) &
    714                &                           .and. prev_cloud(jg)), &
     714               &                           .AND. prev_cloud(jg)), &
    715715               &                     0.0_jprb, is_cloud(jg))
    716716        end do
Note: See TracChangeset for help on using the changeset viewer.