Changeset 4686


Ignore:
Timestamp:
Sep 11, 2023, 4:42:03 PM (8 months ago)
Author:
evignon
Message:

petits ajustements dans lmdz_lscp:

  • ajout de commentaires pour certaines variables
  • renommage de la variable q en qt
  • deplacement d'une declaration inout dans la section 'out'
File:
1 edited

Legend:

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

    r4674 r4686  
    77!++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    88SUBROUTINE lscp(klon,klev,dtime,missing_val,            &
    9      paprs,pplay,temp,q,ptconv,ratqs,                      &
     9     paprs,pplay,temp,qt,ptconv,ratqs,                  &
    1010     d_t, d_q, d_ql, d_qi, rneb, rneblsvol, rneb_seri,  &
    1111     pfraclr,pfracld,                                   &
     
    123123  REAL, DIMENSION(klon,klev),      INTENT(IN)   :: pplay           ! mid-layer pressure [Pa]
    124124  REAL, DIMENSION(klon,klev),      INTENT(IN)   :: temp            ! temperature (K)
    125   REAL, DIMENSION(klon,klev),      INTENT(IN)   :: q               ! total specific humidity (= vapor phase) [kg/kg]
     125  REAL, DIMENSION(klon,klev),      INTENT(IN)   :: qt              ! total specific humidity (in vapor phase in input) [kg/kg]
    126126  INTEGER,                         INTENT(IN)   :: iflag_cld_th    ! flag that determines the distribution of convective clouds
    127127  INTEGER,                         INTENT(IN)   :: iflag_ice_thermo! flag to activate the ice thermodynamics
     
    143143 
    144144  REAL, DIMENSION(klon,klev),      INTENT(INOUT)   :: zthl         ! liquid potential temperature [K]
    145   REAL, DIMENSION(klon,klev),      INTENT(INOUT):: ratqs            ! function of pressure that sets the large-scale
    146   REAL, DIMENSION(klon,klev),      INTENT(OUT):: beta             ! conversion rate of condensed water
     145  REAL, DIMENSION(klon,klev),      INTENT(INOUT)   :: ratqs        ! function of pressure that sets the large-scale
    147146
    148147
     
    172171  REAL, DIMENSION(klon,klev),      INTENT(OUT)  :: distcltop        ! distance to cloud top [m]
    173172  REAL, DIMENSION(klon,klev),      INTENT(OUT)  :: temp_cltop       ! temperature of cloud top [K]
     173  REAL, DIMENSION(klon,klev),      INTENT(OUT)  :: beta             ! conversion rate of condensed water
     174
    174175  ! fraction of aerosol scavenging through impaction and nucleation (for on-line)
    175176 
     
    191192  REAL, DIMENSION(klon,klev),      INTENT(OUT)  :: fcontrN          ! fraction of grid favourable to non-persistent contrails
    192193  REAL, DIMENSION(klon,klev),      INTENT(OUT)  :: fcontrP          ! fraction of grid favourable to persistent contrails
    193   REAL, DIMENSION(klon,klev),      INTENT(OUT)  :: cloudth_sth,cloudth_senv,cloudth_sigmath,cloudth_sigmaenv
    194  
     194  REAL, DIMENSION(klon,klev),      INTENT(OUT)  :: cloudth_sth      ! mean saturation deficit in thermals
     195  REAL, DIMENSION(klon,klev),      INTENT(OUT)  :: cloudth_senv     ! mean saturation deficit in environment
     196  REAL, DIMENSION(klon,klev),      INTENT(OUT)  :: cloudth_sigmath  ! std of saturation deficit in thermals
     197  REAL, DIMENSION(klon,klev),      INTENT(OUT)  :: cloudth_sigmaenv ! std of saturation deficit in environment
     198
     199
    195200
    196201  ! LOCAL VARIABLES:
     
    360365    DO i = 1, klon
    361366        zt(i)=temp(i,k)
    362         zq(i)=q(i,k)
     367        zq(i)=qt(i,k)
    363368        !c_iso init of iso
    364369    ENDDO
     
    12071212        d_ql(i,k) = (1-zfice(i))*zoliq(i)
    12081213        d_qi(i,k) = zfice(i)*zoliq(i)
    1209         d_q(i,k) = zq(i) - q(i,k)
     1214        d_q(i,k) = zq(i) - qt(i,k)
    12101215        ! c_iso: same for isotopes
    12111216        d_t(i,k) = zt(i) - temp(i,k)
Note: See TracChangeset for help on using the changeset viewer.