Ignore:
Timestamp:
Aug 31, 2023, 2:58:34 PM (15 months ago)
Author:
Laurent Fairhead
Message:

Inclusion and merge of Olivier's modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/LMDZ_cdrag_LSCE/libf/phylmd/pbl_surface_mod.F90

    r4478 r4661  
    349349    REAL, DIMENSION(klon),        INTENT(IN)        :: rugoro  ! rugosity length
    350350    REAL, DIMENSION(klon),        INTENT(IN)        :: rmu0    ! cosine of solar zenith angle
    351     REAL, DIMENSION(klon),        INTENT(IN)        :: rain_f  ! rain fall
     351    REAL, DIMENSION(klon),        INTENT(INOUT)     :: rain_f  ! rain fall
    352352    REAL, DIMENSION(klon),        INTENT(IN)        :: snow_f  ! snow fall
    353353    REAL, DIMENSION(klon),        INTENT(IN)        :: solsw_m ! net shortwave radiation at mean surface
     
    15701570        ENDDO
    15711571        CALL cdrag(knon, nsrf, &
    1572             speed, yt(:,1), yq(:,1), zgeo1, ypaprs(:,1),&
     1572            speed, yt(:,1), yq(:,1), zgeo1, ypaprs(:,1), s_pblh, &
    15731573            yts, yqsurf, yz0m, yz0h, yri0, 0, &
    1574             ycdragm, ycdragh, zri1, pref )
     1574            ycdragm, ycdragh, zri1, pref, rain_f, zxtsol, ypplay(:,1))
    15751575
    15761576! --- special Dice: on force cdragm ( a defaut de forcer ustar) MPL 05082013
     
    16041604
    16051605            CALL cdrag(knon, nsrf, &
    1606             speed_x, yt_x(:,1), yq_x(:,1), zgeo1_x, ypaprs(:,1),&
     1606            speed_x, yt_x(:,1), yq_x(:,1), zgeo1_x, ypaprs(:,1),s_pblh_x,&
    16071607            yts_x, yqsurf_x, yz0m, yz0h, yri0, 0, &
    1608             ycdragm_x, ycdragh_x, zri1_x, pref_x )
     1608            ycdragm_x, ycdragh_x, zri1_x, pref_x, rain_f, zxtsol, ypplay(:,1) )
    16091609
    16101610! --- special Dice. JYG+MPL 25112013
     
    16311631        ENDDO
    16321632        CALL cdrag(knon, nsrf, &
    1633             speed_w, yt_w(:,1), yq_w(:,1), zgeo1_w, ypaprs(:,1),&
     1633            speed_w, yt_w(:,1), yq_w(:,1), zgeo1_w, ypaprs(:,1),s_pblh_w,&
    16341634            yts_w, yqsurf_w, yz0m, yz0h, yri0, 0, &
    1635             ycdragm_w, ycdragh_w, zri1_w, pref_w )
     1635            ycdragm_w, ycdragh_w, zri1_w, pref_w, rain_f, zxtsol, ypplay(:,1) )
    16361636!
    16371637        zgeo1(:) = wake_s(:)*zgeo1_w(:) + (1.-wake_s(:))*zgeo1_x(:)
     
    20372037               yu(:,1), yv(:,1), yt(:,1), yq(:,1), zgeo1, &
    20382038               yts, yqsurf, yz0m, yz0h, ypaprs(:,1), ypplay(:,1), &
    2039                yt2m, yq2m, yt10m, yq10m, yu10m, yustar)
     2039               yt2m, yq2m, yt10m, yq10m, yu10m, yustar, ypblh, rain_f, zxtsol)
    20402040          ENDIF
    20412041         
     
    29972997            uzon, vmer, tair1, qair1, zgeo1, &
    29982998            tairsol, qairsol, yz0m, yz0h_oupas, psfce, patm, &
    2999             yt2m, yq2m, yt10m, yq10m, yu10m, yustar)
     2999            yt2m, yq2m, yt10m, yq10m, yu10m, yustar, ypblh, rain_f, zxtsol)
    30003000        ENDIF
    30013001       ELSE  !(iflag_split .eq.0)
     
    30153015            uzon_x, vmer_x, tair1_x, qair1_x, zgeo1_x, &
    30163016            tairsol_x, qairsol, yz0m, yz0h_oupas, psfce, patm, &
    3017             yt2m_x, yq2m_x, yt10m_x, yq10m_x, yu10m_x, yustar_x)
     3017            yt2m_x, yq2m_x, yt10m_x, yq10m_x, yu10m_x, yustar_x, ypblh_x, rain_f, zxtsol)
    30183018        CALL stdlevvar(klon, knon, nsrf, zxli, &
    30193019            uzon_w, vmer_w, tair1_w, qair1_w, zgeo1_w, &
    30203020            tairsol_w, qairsol, yz0m, yz0h_oupas, psfce, patm, &
    3021             yt2m_w, yq2m_w, yt10m_w, yq10m_w, yu10m_w, yustar_w)
     3021            yt2m_w, yq2m_w, yt10m_w, yq10m_w, yu10m_w, yustar_w, ypblh_w, rain_f, zxtsol)
    30223022        ENDIF
    30233023!!!
Note: See TracChangeset for help on using the changeset viewer.