Ignore:
Timestamp:
Nov 4, 2025, 5:51:18 PM (4 weeks ago)
Author:
debatzbr
Message:

Pluto PCM: Add variables, indices, and flags related to microphysical clouds
BBT

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.PLUTO/libf/muphypluto/mp2m_intgcm.F90

    r3560 r3951  
    2929    CONTAINS
    3030
    31     SUBROUTINE mm_initialize(dt,haze_prod_pCH4,p_prod,tx_prod,rc_prod,rm,df,rho_aer,rplanet,g0,air_rad,air_mmol,cfgpath)
     31    SUBROUTINE mm_initialize(dt,haze_prod_pCH4,p_prod,tx_prod,rc_prod,rm,df,rho_aer,rplanet,g0,air_rad,air_mmol,clouds,cfgpath)
    3232        !! Initialize global parameters of the model.
    3333        !!
     
    6767        ! Mean molar mass of air molecules (kg.mol-1).
    6868        REAL(kind=mm_wp), INTENT(in)           :: air_mmol
     69        ! Clouds microphysics control flag.
     70        LOGICAL, INTENT(in)                    :: clouds
    6971        ! Internal microphysics configuration file.
    7072        CHARACTER(len=*), INTENT(in), OPTIONAL :: cfgpath
     
    7274        ! Microphysical configuration file.
    7375        TYPE(cfgparser)        :: cparser
    74         ! Look-up tables (transfert probabilities, mean electric correction).
     76        ! Look-up tables - Haze related: transfert probabilities, mean electric correction.
    7577        CHARACTER(len=st_slen) :: pssfile,mqfile
     78        ! Look-up tables - Cloud related: species properties.
     79        CHARACTER(len=st_slen) :: spcpath
    7680        ! Enable/disable Haze process.
    7781        LOGICAL                :: w_h_prod,w_h_sed,w_h_coag,fwsed_m0,fwsed_m3
     
    8488
    8589        ! Local variables.
    86         TYPE(error)                                 :: err
     90        INTEGER     :: i
     91        TYPE(error) :: err
    8792        REAL(kind=mm_wp), DIMENSION(:), ALLOCATABLE :: tmp
    8893
     
    128133        err = mm_check_opt(cfg_get_value(cparser,"rcf_min",rcf_min)                   ,rcf_min    ,rm        ,mm_log)
    129134        err = mm_check_opt(cfg_get_value(cparser,"debug",wdebug)                      ,wdebug     ,.false.   ,mm_log)
     135
     136        ! Retrieve clouds species configuration file
     137        spcpath = ''
     138        IF (clouds) THEN
     139          err = mm_check_opt(cfg_get_value(cparser,"species_cfg",spcpath), spcpath, wlog=mm_log)
     140          IF (err/=0) call abort_program(err)
     141        ENDIF
    130142   
    131143        ! Alpha function:
     
    215227                               rplanet,g0,air_rad,air_mmol,coag_choice,                &
    216228                               w_h_prod,w_h_sed,w_h_coag,fwsed_m0,fwsed_m3,            &
    217                                m0as_min,rcs_min,m0af_min,rcf_min,wdebug)
     229                               m0as_min,rcs_min,m0af_min,rcf_min,                      &
     230                               clouds,spcpath,wdebug)
    218231        IF (err /= 0) call abort_program(err)
    219232       
     
    223236        WRITE(*,'(a,L2)')     "electric_charging    : ", mm_w_qe
    224237        call mm_dump_parameters()
     238
     239        IF (clouds) THEN
     240            DO i = 1, size(mm_xESPS)
     241                print*, TRIM(mm_xESPS(i)%name), " fmol2fmas = ", mm_xESPS(i)%fmol2fmas
     242            ENDDO
     243        ENDIF
    225244       
    226245    END SUBROUTINE mm_initialize
Note: See TracChangeset for help on using the changeset viewer.