Ignore:
Timestamp:
Nov 17, 2023, 11:24:09 AM (12 months ago)
Author:
csegonne
Message:

MARS PCM:

  • Bug fixes for improvedcloud_mod.F :
  • Initialization of dMice when low ccn number
  • Initialization of zdq at first sub time step (spenttime=0)
  • Move 'coef' to fix the formula for zimicro

CS

File:
1 edited

Legend:

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

    r3092 r3127  
    516516          endif
    517517         
     518          ELSE
     519          ! Initialization of dMice when it's not computed
     520            dMice=0 ! no condensation/sublimation to account for
    518521          ENDIF !of if Nccn>1
    519522
     
    570573          IF (cloud_adapt_ts) then
    571574c           Estimation of how much is actually condensing/subliming
    572                 zdq=(dMice/spenttime)*(ptimestep-spenttime)
     575                IF (spenttime.ne.0) then
     576                   zdq=(dMice/spenttime)*(ptimestep-spenttime)
     577                ELSE
     578                !Initialization for spenttime=0
     579                   zdq=zpotcond(ig,l)*((ptimestep-spenttime)/
     580     &          ptimestep)
     581                ENDIF
    573582c           Threshold with powerlaw (sanity check)
    574583                zdq=min(abs(zdq),
     
    689698       alpha=1.81846504e+11
    690699       beta=1.54550140e+00
    691        zimicro=ceiling(min(max(coef*alpha*abs(potcond)**beta,5.),7000.))
     700       zimicro=ceiling(coef*min(max(alpha*abs(potcond)**beta,5.),7000.))
    692701
    693702      END SUBROUTINE adapt_imicro
Note: See TracChangeset for help on using the changeset viewer.