Changeset 2213


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

Location:
trunk/LMDZ.MARS
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/README

    r2207 r2213  
    28142814Manual User Update: Old stuff removed from part4: Running the model
    28152815
    2816 
     2816== 08/01/2020 == EM
     2817Bug fix in calchim (only had an impact when computations include the
     2818ionosphere), parameters should not be reset at every call.
     2819
     2820
  • 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
  • trunk/LMDZ.MARS/libf/aeronomars/jthermcalc.F

    r2212 r2213  
    13771377C escout(nlayer) on pressure grid p(nlayer).
    13781378C
    1379       real*8 wm(nlayer),wp(nlayer),p(nlayer)
    1380       integer nm(nlayer)
    1381       real*8 pin(nl)
    1382       real*8 limup,limdown
    1383       integer nl,nlayer,n1,n,np,nini
     1379      real*8,intent(out) :: wm(nlayer),wp(nlayer) ! interpolation weights
     1380      integer,intent(out) :: nm(nlayer) ! index of nearest point
     1381      real*8,intent(in) :: pin(nl),p(nlayer)
     1382      real*8,intent(in) :: limup,limdown
     1383      integer,intent(in) :: nl,nlayer
     1384      integer :: n1,n,np,nini
    13841385      nini=1
    13851386      do n1=1,nlayer
     
    14001401         endif
    14011402      enddo
    1402       return
     1403
    14031404      end
    14041405
Note: See TracChangeset for help on using the changeset viewer.