Changeset 5440 for LMDZ6


Ignore:
Timestamp:
Dec 20, 2024, 8:54:12 PM (7 hours ago)
Author:
evignon
Message:

small bug fixes in lscp

Location:
LMDZ6/trunk/libf/phylmd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/lmdz_lscp.f90

    r5430 r5440  
    984984            ENDIF
    985985
    986             zfrac_lessi = 1. - EXP(zalpha_tr*zprec_cond(i)/zneb(i))
     986            zfrac_lessi = 1. - EXP(zalpha_tr*zprec_cond(i)/MAX(rneb(i,k),seuil_neb))
    987987            frac_nucl(i,k)= 1.-zneb(i)*zfrac_lessi
    988988
    989989            ! Nucleation with a factor of -1 instead of -0.5
    990             zfrac_lessi = 1. - EXP(-zprec_cond(i)/zneb(i))
     990            zfrac_lessi = 1. - EXP(-zprec_cond(i)/MAX(rneb(i,k),seuil_neb))
    991991
    992992        ENDIF
  • LMDZ6/trunk/libf/phylmd/lmdz_lscp_condensation.f90

    r5437 r5440  
    292292  !--formed elsewhere)
    293293  IF (keepgoing(i)) THEN
     294
     295    !--Initialisation
     296    issrfra(i)  = 0.
     297    qissr(i)    = 0.
    294298
    295299    !--If the temperature is higher than the threshold below which
     
    363367      dqi_mix(i)  = 0.
    364368      dqvc_mix(i) = 0.
    365 
    366       issrfra(i)  = 0.
    367       qissr(i)    = 0.
    368       subfra(i)   = 0.
    369       qsub(i)     = 0.
    370369
    371370      !--Initialisation of the cell properties
Note: See TracChangeset for help on using the changeset viewer.