Ignore:
Timestamp:
Oct 2, 2014, 11:32:36 AM (10 years ago)
Author:
lfita
Message:

NaN values due to negative topography (topography below sea level) due to:

  • pphi (Geopotential in LMDZ) is relative to the surface. Thus, one should pass

pphi = P + PB - g*HGT

File:
1 edited

Legend:

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

    r133 r174  
    603603         do ig=1,ngrid
    604604            if (ztv(ig,l)> ztv(ig,l+1) .and. ztv(ig,1)>=ztv(ig,l) ) then
    605 ! L. Fita, LMD July 2014. Adding IF for zlev == 0.
    606                IF ( zlev(ig,l+1) < 0.) THEN
    607                  alim_star(ig,l) = 0.
    608                ELSE
    609                  alim_star(ig,l)=MAX((ztv(ig,l)-ztv(ig,l+1)),0.)  &
    610      &                       *sqrt(zlev(ig,l+1))
    611                  lalim(ig)=l+1
    612                END IF
     605!!! L. Fita, LMD July 2014. Adding IF for zlev == 0.
     606!!               IF ( zlev(ig,l+1) < 0.) THEN
     607!!                 alim_star(ig,l) = 0.
     608!!               ELSE
     609               alim_star(ig,l)=MAX((ztv(ig,l)-ztv(ig,l+1)),0.)  &
     610     &                     *sqrt(zlev(ig,l+1))
     611               lalim(ig)=l+1
     612!!               END IF
    613613               alim_star_tot(ig)=alim_star_tot(ig)+alim_star(ig,l)
    614614            endif
Note: See TracChangeset for help on using the changeset viewer.