Ignore:
Timestamp:
Sep 11, 2024, 4:27:07 PM (2 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/cospv2/scops.F90

    r5158 r5185  
    7575
    7676    ! Test for valid input overlap assumption
    77     if (overlap .ne. 1 .and. overlap .ne. 2 .and. overlap .ne. 3) then
     77    if (overlap .ne. 1 .AND. overlap .ne. 2 .AND. overlap .ne. 3) then
    7878       overlap=default_overlap
    7979       call errorMessage('ERROR(scops): Invalid overlap assumption provided. Using default overlap assumption (max/ran)')
     
    180180             !threshold_min(1:npoints,ibox) = max(conv(1:npoints,ilev),min(tca(1:npoints,ilev-1),tca(1:npoints,ilev)))
    181181             !maxosc(1:npoints,ibox) = merge(1,0,threshold(1:npoints,ibox) .lt. &
    182              !     min(tca(1:npoints,ilev-1),tca(1:npoints,ilev)) .and. &
     182             !     min(tca(1:npoints,ilev-1),tca(1:npoints,ilev)) .AND. &
    183183             !     (threshold(1:npoints,ibox).gt.conv(1:npoints,ilev)))
    184184             if (ilev .ne. 1) then
    185185                threshold_min(1:npoints,ibox) = max(conv(1:npoints,ilev),min(tca(1:npoints,ilev-1),tca(1:npoints,ilev)))
    186186                maxosc(1:npoints,ibox) = merge(1,0,threshold(1:npoints,ibox) .lt. &
    187                      min(tca(1:npoints,ilev-1),tca(1:npoints,ilev)) .and. &
     187                     min(tca(1:npoints,ilev-1),tca(1:npoints,ilev)) .AND. &
    188188                     (threshold(1:npoints,ibox).gt.conv(1:npoints,ilev)))
    189189             else
    190190                threshold_min(1:npoints,ibox) = max(conv(1:npoints,ilev),min(0._wp,tca(1:npoints,ilev)))
    191191                maxosc(1:npoints,ibox) = merge(1,0,threshold(1:npoints,ibox) .lt. &
    192                      min(0._wp,tca(1:npoints,ilev)) .and. &
     192                     min(0._wp,tca(1:npoints,ilev)) .AND. &
    193193                     (threshold(1:npoints,ibox).gt.conv(1:npoints,ilev)))
    194194             endif
     
    208208         
    209209          ! Code to partition boxes into startiform and convective parts goes here
    210           where(threshold(1:npoints,ibox).le.conv(1:npoints,ilev) .and. conv(1:npoints,ilev).gt.0.) frac_out(1:npoints,ibox,ilev)=2
     210          where(threshold(1:npoints,ibox).le.conv(1:npoints,ilev) .AND. conv(1:npoints,ilev).gt.0.) frac_out(1:npoints,ibox,ilev)=2
    211211       ENDDO ! ibox
    212212       
Note: See TracChangeset for help on using the changeset viewer.