Changeset 5185 for LMDZ6/branches/Amaury_dev/libf/phylmd/cospv2/scops.F90
- Timestamp:
- Sep 11, 2024, 4:27:07 PM (2 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/branches/Amaury_dev/libf/phylmd/cospv2/scops.F90
r5158 r5185 75 75 76 76 ! Test for valid input overlap assumption 77 if (overlap .ne. 1 . and. overlap .ne. 2 .and. overlap .ne. 3) then77 if (overlap .ne. 1 .AND. overlap .ne. 2 .AND. overlap .ne. 3) then 78 78 overlap=default_overlap 79 79 call errorMessage('ERROR(scops): Invalid overlap assumption provided. Using default overlap assumption (max/ran)') … … 180 180 !threshold_min(1:npoints,ibox) = max(conv(1:npoints,ilev),min(tca(1:npoints,ilev-1),tca(1:npoints,ilev))) 181 181 !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. & 183 183 ! (threshold(1:npoints,ibox).gt.conv(1:npoints,ilev))) 184 184 if (ilev .ne. 1) then 185 185 threshold_min(1:npoints,ibox) = max(conv(1:npoints,ilev),min(tca(1:npoints,ilev-1),tca(1:npoints,ilev))) 186 186 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. & 188 188 (threshold(1:npoints,ibox).gt.conv(1:npoints,ilev))) 189 189 else 190 190 threshold_min(1:npoints,ibox) = max(conv(1:npoints,ilev),min(0._wp,tca(1:npoints,ilev))) 191 191 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. & 193 193 (threshold(1:npoints,ibox).gt.conv(1:npoints,ilev))) 194 194 endif … … 208 208 209 209 ! 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)=2210 where(threshold(1:npoints,ibox).le.conv(1:npoints,ilev) .AND. conv(1:npoints,ilev).gt.0.) frac_out(1:npoints,ibox,ilev)=2 211 211 ENDDO ! ibox 212 212
Note: See TracChangeset
for help on using the changeset viewer.