Changeset 101 in lmdz_wrf
- Timestamp:
- Jul 25, 2014, 3:47:31 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LMDZ_WRFmeas/WRFV3/lmdz/thermcell_height.F90
r100 r101 75 75 CALL check_var3D(lfname, lvarname, zw2, ngrid, nlay+1, largest, .FALSE.) 76 76 77 ! L. Fita, LMD July 2014. Fixing the If when zw2 == 0 77 78 do l=1,nlay 78 79 do ig=1,ngrid 79 80 if (l.le.lmax(ig)) then 80 if (zw2(ig,l).lt.0.)then 81 print*,'pb2 zw2<0' 82 endif 81 ! Previous version 82 ! if (zw2(ig,l).lt.0.)then 83 ! print*,'pb2 zw2<0' 84 ! endif 85 ! zw2(ig,l)=sqrt(zw2(ig,l)) 86 ! wmax(ig)=max(wmax(ig),zw2(ig,l)) 87 ! else 88 ! zw2(ig,l)=0. 89 ! endif 90 ! New version 91 if (zw2(ig,l).lt.0.)then 92 print*,'pb2 zw2<0' 93 zw2(ig,l)=0. 94 wmax(ig)=max(wmax(ig),zw2(ig,l)) 95 else 83 96 zw2(ig,l)=sqrt(zw2(ig,l)) 84 97 wmax(ig)=max(wmax(ig),zw2(ig,l)) 98 endif 85 99 else 86 100 zw2(ig,l)=0. 87 101 endif 102 88 103 enddo 89 104 enddo
Note: See TracChangeset
for help on using the changeset viewer.