Changeset 2150 for trunk/LMDZ.MARS


Ignore:
Timestamp:
Sep 5, 2019, 2:50:33 PM (5 years ago)
Author:
flefevre
Message:

Correction de bug mineur sur calcul du pas de temps photochimique.

File:
1 edited

Legend:

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

    r2044 r2150  
    352352real (kind = 8), parameter :: dtmin   = 10.      ! minimum time step (s)
    353353real (kind = 8), parameter :: vmrtol  = 1.e-11   ! absolute tolerance on vmr
    354 real (kind = 8), parameter :: rtol    = 1./0.05   ! 1/rtol recommended value : 0.1-0.02
     354real (kind = 8), parameter :: rtol    = 0.05     ! rtol recommended value : 0.1-0.02
    355355integer,         parameter :: niter   = 3        ! number of iterations
    356356real (kind = 8), parameter :: coefmax = 2.
     
    406406do iesp = 1,nesp
    407407   es = 2.*abs((ratio*cnew(iesp) - (1. + ratio)*ccur(iesp) + cold(iesp))   &
    408          /(1. + ratio)/max(ccur(iesp),atol))
     408         /(1. + ratio)/max(ccur(iesp)*rtol,atol))
    409409
    410410   if (es > e) then
     
    412412   end if
    413413end do
    414 e = rtol*e
    415414
    416415! timestep correction
     
    700699!---  c008: ho2 + ho2 -> h2o2 + o2
    701700
    702 !     jpl 2006
    703 
    704 !     c008(:) = 3.5e-13*exp(430./t(:))
     701!     jpl 2015
     702
     703!     c008(:) = 3.0e-13*exp(460./t(:))
    705704
    706705!     christensen et al., grl, 13, 2002
Note: See TracChangeset for help on using the changeset viewer.