Ignore:
Timestamp:
Oct 16, 2016, 11:17:32 AM (8 years ago)
Author:
oboucher
Message:

adding new diagnostics for evap/rain/snow weighted by surface types
this parallels what was done for wbilo (net flux)
new diagnostics are wevap_??? wrain_??? wsnow_???
where ??? is ter, oce, lic or sic.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/pbl_surface_mod.F90

    r2655 r2670  
    179179       z0m, z0h,   agesno,  sollw,    solsw,         &
    180180       d_ts,      evap,    fluxlat,  t2m,           &
    181        wfbils,    wfbilo,    flux_t,   flux_u, flux_v,&
     181       wfbils,    wfbilo, wfevap, wfrain, wfsnow,   &
     182       flux_t,   flux_u, flux_v,                    &
    182183       dflux_t,   dflux_q,   zxsnow,                  &
    183184!jyg<
     
    431432    REAL, DIMENSION(klon, nbsrf), INTENT(OUT)       :: t2m        ! temperature at 2 meter height
    432433    REAL, DIMENSION(klon, nbsrf), INTENT(OUT)       :: wfbils     ! heat balance at surface
    433     REAL, DIMENSION(klon, nbsrf), INTENT(OUT)       :: wfbilo     ! water balance at surface
     434    REAL, DIMENSION(klon, nbsrf), INTENT(OUT)       :: wfbilo     ! water balance at surface weighted by srf
     435    REAL, DIMENSION(klon, nbsrf), INTENT(OUT)       :: wfevap     ! water balance (evap) at surface weighted by srf
     436    REAL, DIMENSION(klon, nbsrf), INTENT(OUT)       :: wfrain     ! water balance (rain) at surface weighted by srf
     437    REAL, DIMENSION(klon, nbsrf), INTENT(OUT)       :: wfsnow     ! water balance (snow) at surface weighted by srf
    434438    REAL, DIMENSION(klon, klev, nbsrf), INTENT(OUT) :: flux_t     ! sensible heat flux (CpT) J/m**2/s (W/m**2)
    435439                                                                  ! positve orientation downwards
     
    865869 fluxlat(:,:)=0.
    866870 wfbils(:,:)=0. ; wfbilo(:,:)=0.
     871 wfevap(:,:)=0. ; wfrain(:,:)=0. ; wfsnow(:,:)=0.
    867872 flux_t(:,:,:)=0. ; flux_q(:,:,:)=0. ; flux_u(:,:,:)=0. ; flux_v(:,:,:)=0.
    868873 dflux_t(:)=0. ; dflux_q(:)=0.
     
    28232828          wfbils(i,nsrf) = ( solsw(i,nsrf) + sollw(i,nsrf) &
    28242829               + flux_t(i,1,nsrf) + fluxlat(i,nsrf) ) * pctsrf(i,nsrf)
    2825           wfbilo(i,nsrf) = (evap(i,nsrf) - (rain_f(i) + snow_f(i))) * &
    2826                pctsrf(i,nsrf)
     2830          wfbilo(i,nsrf) = (evap(i,nsrf)-(rain_f(i)+snow_f(i)))*pctsrf(i,nsrf)
     2831          wfevap(i,nsrf) = evap(i,nsrf)*pctsrf(i,nsrf)
     2832          wfrain(i,nsrf) = rain_f(i)*pctsrf(i,nsrf)
     2833          wfsnow(i,nsrf) = snow_f(i)*pctsrf(i,nsrf)
    28272834
    28282835          zxtsol(i)    = zxtsol(i)    + ts(i,nsrf)      * pctsrf(i,nsrf)
Note: See TracChangeset for help on using the changeset viewer.