Changeset 2164


Ignore:
Timestamp:
Sep 25, 2019, 10:05:39 AM (5 years ago)
Author:
emillour
Message:

Mars GCM:
Add the possibility to super-cycle chemistry computations. Chemistry will
be computed every "ichemistry" physics step (but chemistry tendencies are
added every physics step). Default is ichemistry=1.
AB+EM

Location:
trunk/LMDZ.MARS
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2162 r2164  
    27522752- Externalize in "physiq" the computation of solar zenithal angle
    27532753  (it should be computed at every physics timestep, regardless of iradia)
     2754
     2755== 25/09/2019 == AB+EM
     2756Add the possibility to super-cycle chemistry computations. Chemistry will
     2757be computed every "ichemistry" physics step (but chemistry tendencies are
     2758added every physics step). Default is ichemistry=1.
  • trunk/LMDZ.MARS/libf/aeronomars/calchim_mod.F90

    r2162 r2164  
    33  IMPLICIT NONE
    44
     5  INTEGER, SAVE :: ichemistry ! compute chemistry every ichemistry physics step
    56  REAL,SAVE,ALLOCATABLE :: zdqchim(:,:,:) ! Tendancy on pq due to photochemistry
    67  REAL,SAVE,ALLOCATABLE :: zdqschim(:,:) ! Tendancy on qsurf due to photochemistry
  • trunk/LMDZ.MARS/libf/phymars/conf_phys.F

    r2160 r2164  
    4444     &                      ini_scatterers,tauvis
    4545      use datafile_mod, only: datadir
     46      use calchim_mod, only: ichemistry
    4647
    4748      IMPLICIT NONE
     
    688689         write(*,*) "tituscap",tituscap
    689690                     
    690 
     691! Chemistry:
    691692         write(*,*) "photochemistry: include chemical species"
    692693         photochem=.false. ! default value
    693694         call getin("photochem",photochem)
    694695         write(*,*) " photochem = ",photochem
     696         
     697         write(*,*) "Compute chemistry (if photochem is .true.)",
     698     &   "every ichemistry physics step (default: ichemistry=1)"
     699         ichemistry=1
     700         call getin("ichemistry",ichemistry)
     701         write(*,*) " ichemistry = ",ichemistry
    695702
    696703
  • trunk/LMDZ.MARS/libf/phymars/physiq_mod.F

    r2162 r2164  
    1515
    1616      use watercloud_mod, only: watercloud, zdqcloud, zdqscloud
    17       use calchim_mod, only: calchim, zdqchim, zdqschim
     17      use calchim_mod, only: calchim, ichemistry, zdqchim, zdqschim
    1818      use watersat_mod, only: watersat
    1919      use co2condens_mod, only: co2condens
     
    16151615         IF (photochem) then
    16161616
     1617           if (modulo(icount-1,ichemistry).eq.0) then
     1618           ! compute chemistry every ichemistry physics step
     1619
    16171620!           dust and ice surface area
    16181621            call surfacearea(ngrid, nlayer, naerkind,
     
    16271630     $                   zdqcloud,zdqscloud,tau(:,1),co2ice,
    16281631     $                   pu,pdu,pv,pdv,surfdust,surfice)
     1632
     1633            endif ! of if (modulo(icount-1,ichemistry).eq.0)
    16291634
    16301635           ! increment values of tracers:
Note: See TracChangeset for help on using the changeset viewer.