Changeset 663 for trunk/LMDZ.MARS/libf


Ignore:
Timestamp:
May 21, 2012, 1:35:29 PM (13 years ago)
Author:
flefevre
Message:

Improvement in the stability of the water cycle scheme at very low
temperatures: avoid infinite values of the H2O saturation ratio
in improvedclouds.F

File:
1 edited

Legend:

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

    r633 r663  
    3636#include "dimradmars.h"
    3737#include "microphys.h"
     38#include "conc.h"
    3839c------------------------------------------------------------------
    3940c     Inputs:
     
    258259
    259260c       Get the partial pressure of water vapor and its saturation ratio
    260         ph2o = zq(ig,l,igcm_h2o_vap) * (44./18.) * pplay(ig,l)
    261         satu = zq(ig,l,igcm_h2o_vap) / zqsat(ig,l)
     261        ph2o = zq(ig,l,igcm_h2o_vap) * (mmean(ig,l)/18.) * pplay(ig,l)
     262        satu = zq(ig,l,igcm_h2o_vap) / max(zqsat(ig,l), 1.e-30)
    262263
    263264!=============================================================
Note: See TracChangeset for help on using the changeset viewer.