Changeset 4063 for trunk


Ignore:
Timestamp:
Feb 10, 2026, 9:47:13 PM (3 days ago)
Author:
tbertrand
Message:

MARS PCM:
dust coagulation : just renaming some flags so that it is more human readable, following suggestion by Grand Manitou Ehouarn
TB

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
1 added
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/callkeys_mod.F90

    r4060 r4063  
    6464logical,save :: topflows ! entrainment by mountain top dust flows parametrization
    6565!$OMP THREADPRIVATE(topflows)
    66 logical,save :: coagulation ! coagulation of dust particles
    67 logical,save :: fullcoag ! coagulation of dust particles using full equations instead of lookup tables
    68 logical,save :: kernel_b, kernel_g, kernel_de, kernel_ti ! kernels for different types of dust coagulation
    69 !$OMP THREADPRIVATE(coagulation,fullcoag,kernel_b,kernel_g,kernel_de,kernel_ti)
     66logical,save :: dust_coagulation ! coagulation of dust particles
     67!$OMP THREADPRIVATE(coagulation)
    7068integer,save :: coal_kg ! mode for coalescence 0,1, or 2
    7169!$OMP THREADPRIVATE(coal_kg)
  • trunk/LMDZ.MARS/libf/phymars/conf_phys.F

    r4060 r4063  
    4646     &                     ads_massive_ice
    4747      use nonoro_gwd_mix_mod, only: calljliu_gwimix
     48      use dust_coagulation_mod, only: dust_coag_kernel_b,
     49     &      dust_coag_kernel_g,dust_coag_kernel_de,dust_coag_kernel_ti,
     50     &      coal_coeff_mode,full_coag_equations
    4851      use lwxn_mod, only: lwxn_linear, lwxn_alphan, lwxn_ncouche
    4952      use callkeys_mod, only: startphy_file, activice, activeco2ice,
     
    7275     &                        tf_injection, ti_injection, thermochem,
    7376     &                        thermoswater, tituscap, tke_heat_flux,
    74      &                        topflows, water, coagulation, kernel_b,
    75      &                        kernel_g,kernel_de,kernel_ti,coal_kg,
    76      &                        fullcoag
     77     &                        topflows, water, dust_coagulation
    7778      use write_output_mod, only: output_diagfi
    7879
     
    389390! dust particle coagulation
    390391         write(*,*)"call coagulation of dust"
    391          coagulation=.false. ! default value
    392          call getin_p("coagulation",coagulation)
    393          write(*,*)" coagulation = ",coagulation
    394          fullcoag=.false. ! default value
    395          kernel_b=.true. ! default value (if coagulation=true)
    396          kernel_g=.false. ! default value
    397          kernel_de=.false. ! default value
    398          kernel_ti=.false. ! default value
    399          coal_kg=0 ! default value
    400          if (coagulation) then
    401            write(*,*)" coagulation fullcoag and mode= ",fullcoag,coal_kg
    402            write(*,*)" coagulation kernels= ",kernel_b,kernel_g,
    403      &                                        kernel_de,kernel_ti
     392         dust_coagulation=.false. ! default value
     393         call getin_p("dust_coagulation",dust_coagulation)
     394         write(*,*)" dust_coagulation = ",dust_coagulation
     395         full_coag_equations=.false. ! default value
     396         dust_coag_kernel_b=.true. ! default value (if coagulation=true)
     397         dust_coag_kernel_g=.false. ! default value
     398         dust_coag_kernel_de=.false. ! default value
     399         dust_coag_kernel_ti=.false. ! default value
     400         coal_coeff_mode=0 ! default value
     401         if (dust_coagulation) then
     402           write(*,*)" coagulation full_coag_equations: ",
     403     &                                            full_coag_equations
     404           write(*,*)" coagulation coal_coeff_mode: ",coal_coeff_mode
     405           write(*,*)" coagulation kernels= ",dust_coag_kernel_b,
     406     &     dust_coag_kernel_g,dust_coag_kernel_de,dust_coag_kernel_ti
    404407         endif
    405408
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r4060 r4063  
    2525      use calcstormfract_mod, only: calcstormfract
    2626      use topmons_mod, only: topmons,topmons_setup
    27       use coagulation_mod, only: coagul_main,coagul_init
     27      use dust_coagulation_mod, only: dust_coagulation_main,
     28     &                                dust_coagulation_init
    2829      use nltecool_mod, only: nltecool
    2930      use nlte_tcool_mod, only: nlte_tcool
     
    150151      use callkeys_mod, only: photochem, callthermos
    151152      use callkeys_mod, only: startphy_file
    152       use callkeys_mod, only: coagulation
     153      use callkeys_mod, only: dust_coagulation
    153154
    154155      IMPLICIT NONE
     
    794795        if (topflows) call topmons_setup(ngrid)
    795796
    796 c        Initialize coagulation parameters
     797c        Initialize dust coagulation parameters
    797798c        ~~~~~~~~~~~~~~~
    798         if (coagulation) call coagul_init()
     799        if (dust_coagulation) call dust_coagulation_init()
    799800
    800801c        Parameterization of the ATKE routine
     
    14551456c     3.3 Dust coagulation
    14561457c    -------------------------------------------
    1457       IF (coagulation) THEN
     1458      IF (dust_coagulation) THEN
    14581459         pdqcoag(:,:,:)=0.
    1459          CALL coagul_main(ngrid,nlayer,nq,ptime,ptimestep,
     1460         CALL dust_coagulation_main(ngrid,nlayer,nq,ptime,ptimestep,
    14601461     &                     pq,pdq,pt,pdt,pplay,pplev,
    14611462     &                     pdqcoag)
     
    14961497         ENDIF ! end of if (rdstorm)
    14971498
    1498       ENDIF ! end of if (coagulation)
     1499      ENDIF ! end of if (dust coagulation)
    14991500
    15001501c     3.4 Dust injection from the surface
     
    37913792           endif ! (topflows)
    37923793
    3793            if (coagulation) then
     3794           if (dust_coagulation) then
    37943795             call write_output('zdqcoag_dustm',
    3795      &                     'coagulation tendency',
     3796     &                     'dust coagulation tendency',
    37963797     &                     'kg kg-1 s-1',pdqcoag(:,:,igcm_dust_mass))
    37973798             call write_output('zdqcoag_dustn',
    3798      &                     'coagulation tendency',
     3799     &                     'dust coagulation tendency',
    37993800     &                     'nbp kg-1 s-1',pdqcoag(:,:,igcm_dust_number))
    38003801           endif 
Note: See TracChangeset for help on using the changeset viewer.