Changeset 4723 for LMDZ6


Ignore:
Timestamp:
Oct 9, 2023, 10:38:52 PM (15 months ago)
Author:
Laurent Fairhead
Message:

Forgot phylmdiso modifications

Location:
LMDZ6/trunk/libf/phylmdiso
Files:
9 added
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmdiso/pbl_surface_mod.F90

    r4687 r4723  
    438438    REAL, DIMENSION(klon),        INTENT(IN)        :: rugoro  ! rugosity length
    439439    REAL, DIMENSION(klon),        INTENT(IN)        :: rmu0    ! cosine of solar zenith angle
    440     REAL, DIMENSION(klon),        INTENT(IN)        :: rain_f  ! rain fall
     440    REAL, DIMENSION(klon),        INTENT(INOUT)     :: rain_f  ! rain fall
    441441    REAL, DIMENSION(klon),        INTENT(IN)        :: snow_f  ! snow fall
    442442    REAL, DIMENSION(klon),        INTENT(IN)        :: bs_f  ! blowing snow fall
     
    12861286!albedo SB <<<
    12871287    yrain_f = 0.0 ; ysnow_f = 0.0  ; ybs_f=0.0  ; yfder = 0.0     ; ysolsw = 0.0
    1288     ysollw = 0.0  ; yz0m = 0.0 ; yz0h = 0.0    ; yu1 = 0.0   
     1288    ysollw = 0.0  ; yz0m = 0.0 ; yz0h = 0.0    ; yz0h_oupas = 0.0 ; yu1 = 0.0   
    12891289    yv1 = 0.0     ; ypaprs = 0.0     ; ypplay = 0.0     ; yqbs1 = 0.0
    12901290    ydelp = 0.0   ; yu = 0.0         ; yv = 0.0        ; yt = 0.0         
     
    18751875        ENDDO
    18761876        CALL cdrag(knon, nsrf, &
    1877             speed, yt(:,1), yq(:,1), zgeo1, ypaprs(:,1),&
     1877            speed, yt(:,1), yq(:,1), zgeo1, ypaprs(:,1), s_pblh, &
    18781878            yts, yqsurf, yz0m, yz0h, yri0, 0, &
    1879             ycdragm, ycdragh, zri1, pref )
     1879            ycdragm, ycdragh, zri1, pref, rain_f, zxtsol, ypplay(:,1))
    18801880
    18811881! --- special Dice: on force cdragm ( a defaut de forcer ustar) MPL 05082013
     
    19091909
    19101910            CALL cdrag(knon, nsrf, &
    1911             speed_x, yt_x(:,1), yq_x(:,1), zgeo1_x, ypaprs(:,1),&
     1911            speed_x, yt_x(:,1), yq_x(:,1), zgeo1_x, ypaprs(:,1),s_pblh_x,&
    19121912            yts_x, yqsurf_x, yz0m, yz0h, yri0, 0, &
    1913             ycdragm_x, ycdragh_x, zri1_x, pref_x )
     1913            ycdragm_x, ycdragh_x, zri1_x, pref_x, rain_f, zxtsol, ypplay(:,1) )
    19141914
    19151915! --- special Dice. JYG+MPL 25112013
     
    19361936        ENDDO
    19371937        CALL cdrag(knon, nsrf, &
    1938             speed_w, yt_w(:,1), yq_w(:,1), zgeo1_w, ypaprs(:,1),&
     1938            speed_w, yt_w(:,1), yq_w(:,1), zgeo1_w, ypaprs(:,1),s_pblh_w,&
    19391939            yts_w, yqsurf_w, yz0m, yz0h, yri0, 0, &
    1940             ycdragm_w, ycdragh_w, zri1_w, pref_w )
    1941 !
    1942         zgeo1(:) = wake_s(:)*zgeo1_w(:) + (1.-wake_s(:))*zgeo1_x(:)
     1940            ycdragm_w, ycdragh_w, zri1_w, pref_w, rain_f, zxtsol, ypplay(:,1) )
     1941!
     1942!!!bug !!        zgeo1(:) = wake_s(:)*zgeo1_w(:) + (1.-wake_s(:))*zgeo1_x(:)
     1943        zgeo1(1:knon) = wake_s(1:knon)*zgeo1_w(1:knon) + (1.-wake_s(1:knon))*zgeo1_x(1:knon)
    19431944
    19441945! --- special Dice. JYG+MPL 25112013 puis BOMEX
     
    23802381               yu(:,1), yv(:,1), yt(:,1), yq(:,1), zgeo1, &
    23812382               yts, yqsurf, yz0m, yz0h, ypaprs(:,1), ypplay(:,1), &
    2382                yt2m, yq2m, yt10m, yq10m, yu10m, yustar)
     2383               yt2m, yq2m, yt10m, yq10m, yu10m, yustar, ypblh, rain_f, zxtsol)
    23832384          ENDIF
    23842385         
     
    36083609       IF (iflag_split .eq.0) THEN
    36093610        IF (iflag_new_t2mq2m==1) THEN
    3610          CALL stdlevvarn(klon, knon, nsrf, zxli, &
     3611           CALL stdlevvarn(klon, knon, nsrf, zxli, &
    36113612            uzon, vmer, tair1, qair1, zgeo1, &
    36123613            tairsol, qairsol, yz0m, yz0h_oupas, psfce, patm, &
     
    36173618            uzon, vmer, tair1, qair1, zgeo1, &
    36183619            tairsol, qairsol, yz0m, yz0h_oupas, psfce, patm, &
    3619             yt2m, yq2m, yt10m, yq10m, yu10m, yustar)
     3620            yt2m, yq2m, yt10m, yq10m, yu10m, yustar, ypblh, rain_f, zxtsol)
    36203621        ENDIF
    36213622       ELSE  !(iflag_split .eq.0)
     
    36353636            uzon_x, vmer_x, tair1_x, qair1_x, zgeo1_x, &
    36363637            tairsol_x, qairsol, yz0m, yz0h_oupas, psfce, patm, &
    3637             yt2m_x, yq2m_x, yt10m_x, yq10m_x, yu10m_x, yustar_x)
     3638            yt2m_x, yq2m_x, yt10m_x, yq10m_x, yu10m_x, yustar_x, ypblh_x, rain_f, zxtsol)
    36383639        CALL stdlevvar(klon, knon, nsrf, zxli, &
    36393640            uzon_w, vmer_w, tair1_w, qair1_w, zgeo1_w, &
    36403641            tairsol_w, qairsol, yz0m, yz0h_oupas, psfce, patm, &
    3641             yt2m_w, yq2m_w, yt10m_w, yq10m_w, yu10m_w, yustar_w)
     3642            yt2m_w, yq2m_w, yt10m_w, yq10m_w, yu10m_w, yustar_w, ypblh_w, rain_f, zxtsol)
    36423643        ENDIF
    36433644!!!
  • LMDZ6/trunk/libf/phylmdiso/physiq_mod.F90

    r4715 r4723  
    13331333#endif
    13341334   
     1335
     1336    REAL, dimension(klon,klev) :: t_env,q_env
     1337
     1338    REAL, dimension(klon) :: pr_et
     1339    REAL, dimension(klon) :: w_et, jlr_g_c, jlr_g_s
     1340
    13351341    REAL pi
    13361342    INTEGER ieru
     
    31013107       ELSE IF (iflag_gusts==2) THEN
    31023108          gustiness(1:klon)=f_gust_bl*ale_bl_stat(1:klon)+f_gust_wk*ale_wake(1:klon)
     3109       !!!! modif olivier torres
     3110       ELSE IF (iflag_gusts==3) THEN
     3111          w_et=wstar(1,3)
     3112          jlr_g_s=(0.65*w_et)**2
     3113          pr_et=rain_con*8640
     3114          jlr_g_c = (((19.8*(pr_et(1:klon)**2))/(1.5+pr_et(1:klon)+pr_et(1:klon)**2))**(0.4))**2
     3115          gustiness(1:klon)=jlr_g_c+jlr_g_s
     3116!!       write(*,*) "rain ",pr_et
     3117!!       write(*,*) "jlr_g_c",jlr_g_c
     3118!!       write(*,*) "wstar",wstar(1,3)
     3119!!       write(*,*) "jlr_g_s",jlr_g_s
    31033120          ! ELSE IF (iflag_gusts==2) THEN
    31043121          !    do i = 1, klon
Note: See TracChangeset for help on using the changeset viewer.