Changeset 174 in lmdz_wrf for branches/LMDZ_WRFmeas


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

Location:
branches/LMDZ_WRFmeas/WRFV3
Files:
2 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
  • branches/LMDZ_WRFmeas/WRFV3/phys/module_lmdz_phys.F

    r6 r174  
    10811081    preff=100000.
    10821082    CALL eta_to_pressure(wrf_halfeta, preff, wrf_Ptop, dimz, lmdzoutP)
     1083! L. Fita, LMD October 2014. LMDZ geopotential values are relative to the surface
     1084    PRINT *,'  Lluis UBOUND GeopotValues:',UBOUND(GeopotValues), ' sfcZ:',      &
     1085      UBOUND(sfcGeopotValues)
     1086    PRINT *,'  Lluis: lp',lp,' z GeopotValues sfcGeopotValues ______'
     1087    DO iz=1, dimz
     1088      PRINT *,GeopotValues(lp,iz),sfcGeopotValues(lp),GeopotValues(lp,iz) -     &
     1089        sfcGeopotValues(lp)
     1090      GeopotValues(:,iz) = GeopotValues(:,iz) - sfcGeopotValues(:)
     1091    END DO
    10831092
    10841093! We need to provide values to these variables in order to make it works
Note: See TracChangeset for help on using the changeset viewer.