Changeset 2107 for trunk/LMDZ.GENERIC/libf/phystd/convadj.F
- Timestamp:
- Feb 26, 2019, 4:45:05 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/libf/phystd/convadj.F
r1805 r2107 4 4 & pdufi,pdvfi,pdhfi,pdqfi, 5 5 & pduadj,pdvadj,pdhadj, 6 & pdqadj )6 & pdqadj,lmax) 7 7 8 8 USE tracer_h … … 41 41 REAL pu(ngrid,nlay),pdufi(ngrid,nlay),pduadj(ngrid,nlay) 42 42 REAL pv(ngrid,nlay),pdvfi(ngrid,nlay),pdvadj(ngrid,nlay) 43 INTEGER lmax(ngrid) 43 44 44 45 ! Tracers … … 156 157 DO l=2,nlay 157 158 DO ig=1,ngrid 158 IF(zhc(ig,l).LT.zhc(ig,l-1)) vtest(ig)=.true. 159 IF (zhc(ig,l).LT.zhc(ig,l-1).and.(l.GT.lmax(ig))) THEN 160 vtest(ig)=.true. 161 ENDIF 159 162 ENDDO 160 163 ENDDO 161 164 162 165 ! Make a list of them 163 166 jcnt=0 … … 194 197 l2 = l2 + 1 195 198 IF (l2 .GT. nlay) EXIT 196 IF ( zhc(i, l2) .LT. zhc(i, l2-1)) THEN199 IF ((zhc(i, l2).LT.zhc(i, l2-1)).and.(l.GT.lmax(i))) THEN 197 200 198 201 ! l2 is the highest level of the unstable column … … 223 226 down = .false. 224 227 IF (l1 .ne. 1) then !-- and then 225 IF ( zhmc .lt. zhc(i, l1-1)) then228 IF ((zhmc.LT.zhc(i, l1-1)).and.(l.GT.lmax(i))) then 226 229 down = .true. 227 230 END IF
Note: See TracChangeset
for help on using the changeset viewer.