Changeset 128 in lmdz_wrf


Ignore:
Timestamp:
Jul 28, 2014, 5:51:20 PM (10 years ago)
Author:
lfita
Message:

Adding more conditions to the criteria

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LMDZ_WRFmeas/WRFV3/lmdz/thermcell_main.F90

    r127 r128  
    916916!          if ((pplay(ig,l) .ge. pcon(ig)) .and. (pplay(ig,l+1) .le. pcon(ig))) then
    917917! 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             (pplay(ig,klcl(ig)+1)-pplay(ig,klcl(ig))) .ne. 0.) then
     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
    920921          klcl(ig)=l
    921922          interp(ig)=(pcon(ig)-pplay(ig,klcl(ig)))/(pplay(ig,klcl(ig)+1)-pplay(ig,klcl(ig)))
Note: See TracChangeset for help on using the changeset viewer.