Changeset 129 in lmdz_wrf for branches/LMDZ_WRFmeas/WRFV3/lmdz/thermcell_main.F90
- Timestamp:
- Jul 28, 2014, 6:04:06 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/LMDZ_WRFmeas/WRFV3/lmdz/thermcell_main.F90
r128 r129 916 916 ! if ((pplay(ig,l) .ge. pcon(ig)) .and. (pplay(ig,l+1) .le. pcon(ig))) then 917 917 ! L. Fita, LMD July 2014. Adding avoiding divisons by zero... 918 if ((pplay(ig,l) .ge. pcon(ig)) .and. (pplay(ig,l+1) .le. pcon(ig)) .and. & 919 (klcl(ig) .gt. 0) .and. (klcl(ig) + 1 .le. nlay-1) .and. & 920 (pplay(ig,klcl(ig)+1)-pplay(ig,klcl(ig)) .ne. 0.) ) then 921 klcl(ig)=l 922 interp(ig)=(pcon(ig)-pplay(ig,klcl(ig)))/(pplay(ig,klcl(ig)+1)-pplay(ig,klcl(ig))) 918 if ((pplay(ig,l).ge.pcon(ig)) .and. (pplay(ig,l+1).le.pcon(ig)) .and. & 919 (klcl(ig).gt.0).and.(klcl(ig)+1.le.nlay-1) .and. (klcl(ig)+1.gt.0) then 920 ! (pplay(ig,klcl(ig)+1)-pplay(ig,klcl(ig)).ne.0.) ) then 921 klcl(ig)=l 922 interp(ig)=(pcon(ig)-pplay(ig,klcl(ig)))/(pplay(ig,klcl(ig)+1)-pplay(ig,klcl(ig))) 923 IF interp(ig) /= interp(ig) THEN 924 PRINT *,' Lluis wrong interp= ',interp(ig),' at ', ig,' klcl(ig): ', & 925 klcl(ig),' klcl(ig)+1: ', klcl(ig)+1 926 END IF 923 927 endif 924 928 endif
Note: See TracChangeset
for help on using the changeset viewer.