Ignore:
Timestamp:
Apr 26, 2019, 5:50:39 PM (5 years ago)
Author:
musat
Message:

Ajout bornage a 2m

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/physiq_mod.F90

    r3480 r3489  
    117117       zustar, zu10m, zv10m, rh2m, qsat2m, &
    118118       zq2m, zt2m, weak_inversion, &
     119       zq2m_cor,zt2m_cor,zu10m_cor,zv10m_cor, & ! pour corriger d'un bug
     120       zrh2m_cor,zqsat2m_cor, &
    119121       zt2m_min_mon, zt2m_max_mon,   &         ! pour calcul_divers.h
    120122       t2m_min_mon, t2m_max_mon,  &            ! pour calcul_divers.h
     
    593595                                                        ! gust-front in the grid cell.
    594596    !$OMP THREADPRIVATE(iflag_alp_wk_cond)
     597
     598    INTEGER,  SAVE               :: iflag_bug_t2m_ipslcm61=0 !
     599    !$OMP THREADPRIVATE(iflag_bug_t2m_ipslcm61)
     600    INTEGER,  SAVE               :: iflag_bug_t2m_stab_ipslcm61=1 !
     601    !$OMP THREADPRIVATE(iflag_bug_t2m_stab_ipslcm61)
     602
    595603    REAL t_w(klon,klev),q_w(klon,klev) ! temperature and moisture profiles in the wake region
    596604    REAL t_x(klon,klev),q_x(klon,klev) ! temperature and moisture profiles in the off-wake region
     
    12951303       tau_gl=86400.*tau_gl
    12961304       WRITE(lunout,*) 'debut physiq_mod tau_gl=',tau_gl
     1305
     1306       iflag_bug_t2m_ipslcm61 = 0
     1307       CALL getin_p('iflag_bug_t2m_ipslcm61', iflag_bug_t2m_ipslcm61)
     1308       iflag_bug_t2m_stab_ipslcm61 = 0
     1309       CALL getin_p('iflag_bug_t2m_stab_ipslcm61', iflag_bug_t2m_stab_ipslcm61)
    12971310
    12981311       CALL getin_p('iflag_alp_wk_cond', iflag_alp_wk_cond)
     
    24582471       ENDIF
    24592472
     2473!add limitation for t,q at and wind at 10m
     2474        if ( iflag_bug_t2m_ipslcm61 == 0 ) THEN
     2475          CALL borne_var_surf( klon,klev,nbsrf,                 &
     2476            iflag_bug_t2m_stab_ipslcm61,                        &
     2477            t_seri(:,1),q_seri(:,1),u_seri(:,1),v_seri(:,1),    &
     2478            ftsol,zxqsurf,pctsrf,paprs,                         &
     2479            t2m, q2m, u10m, v10m,                               &
     2480            zt2m_cor, zq2m_cor, zu10m_cor, zv10m_cor,           &
     2481            zrh2m_cor, zqsat2m_cor)
     2482        ELSE
     2483          zt2m_cor(:)=zt2m(:)
     2484          zq2m_cor(:)=zq2m(:)
     2485          zu10m_cor(:)=zu10m(:)
     2486          zv10m_cor(:)=zv10m(:)
     2487        ENDIF
    24602488
    24612489       !---------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.