Ignore:
Timestamp:
May 6, 2021, 5:31:05 PM (4 years ago)
Author:
mvals
Message:

Mars GCM:
Correction of the threshold value used to prevent from negative values in watercloud_mod.F: the threshold is set to 1e-16 (=qperemin, an already
existing parameter for the water cycle), instead of 1e-8. This former value was at the origin of a strong and unrealistic drying out of the upper
atmosphere, when the photochemistry was active, during the first part of the martian year (months 3 and 4). (bug reported by Francisco
Gonzalez-Galindo).
MV

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/watercloud_mod.F

    r2494 r2516  
    2222     &                      igcm_dust_mass, igcm_dust_number,
    2323     &                      igcm_ccn_mass, igcm_ccn_number,
    24      &                      rho_dust, nuice_sed, nuice_ref
     24     &                      rho_dust, nuice_sed, nuice_ref,
     25     &                      qperemin
    2526      use dimradmars_mod, only: naerkind
    2627      IMPLICIT NONE
     
    514515          IF (pq(ig,l,igcm_h2o_ice) + ptimestep*
    515516     &       (pdq(ig,l,igcm_h2o_ice) + pdqcloud(ig,l,igcm_h2o_ice))
    516      &       .le. 1.e-8) THEN
     517     &       .le. qperemin) THEN
    517518           pdqcloud(ig,l,igcm_h2o_ice) =
    518519     &     - pq(ig,l,igcm_h2o_ice)/ptimestep - pdq(ig,l,igcm_h2o_ice)
     
    526527          IF (pq(ig,l,igcm_h2o_vap) + ptimestep*
    527528     &       (pdq(ig,l,igcm_h2o_vap) + pdqcloud(ig,l,igcm_h2o_vap))
    528      &       .le. 1.e-8) THEN
     529     &       .le. qperemin) THEN
    529530           pdqcloud(ig,l,igcm_h2o_vap) =
    530531     &     - pq(ig,l,igcm_h2o_vap)/ptimestep - pdq(ig,l,igcm_h2o_vap)
Note: See TracChangeset for help on using the changeset viewer.