Ignore:
Timestamp:
Jan 8, 2020, 12:01:49 PM (5 years ago)
Author:
emillour
Message:

Mars GCM:
Bug fix in calchim (only had an impact when computations include the
ionosphere), parameters should not be reset at every call.
EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/aeronomars/calchim_mod.F90

    r2170 r2213  
    191191!     for output:
    192192
    193       logical :: output             ! to issue calls to writediagfi and stats
     193      logical,save :: output        ! to issue calls to writediagfi and stats
    194194      real :: jo3_3d(ngrid,nlayer)  ! Photodissociation rate O3->O1D (s-1)
    195195      real :: jh2o_3d(ngrid,nlayer)  ! Photodissociation rate H2O->H+OH (s-1)
     
    200200
    201201!=======================================================================
     202!     initialization of the chemistry (first call only)
     203!=======================================================================
     204
     205      if (firstcall) then
     206
     207!=======================================================================
    202208!     main dashboard for the chemistry
    203209!=======================================================================
    204210
    205       unichim = .true.     ! true : unified chemistry ! false : separate models in lower and upper atmosphere
    206       jonline = .true.     ! true : on-line calculation of photodissociation rates ! false : lookup table
    207       ionchem = .false.    ! switch for ionospheric chemistry
    208       depos   = .false.    ! switch for dry deposition
    209       output  = .false.    ! true : triggers writing of specific outputs (photolysis rates, emission rates, etc)
    210 
    211 !=======================================================================
    212 !     initialization of the chemistry (first call only)
    213 !=======================================================================
    214 
    215       if (firstcall) then
     211        unichim = .true.     ! true : unified chemistry ! false : separate models in lower and upper atmosphere
     212        jonline = .true.     ! true : on-line calculation of photodissociation rates ! false : lookup table
     213        ionchem = .false.    ! switch for ionospheric chemistry
     214        depos   = .false.    ! switch for dry deposition
     215        output  = .false.    ! true : triggers writing of specific outputs (photolysis rates, emission rates, etc)
    216216
    217217         if (photochem) then
Note: See TracChangeset for help on using the changeset viewer.