Changeset 3267


Ignore:
Timestamp:
Mar 15, 2018, 10:32:39 AM (7 years ago)
Author:
jyg
Message:

Refinement of commit 3253

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/cvltr_noscav.F90

    r3253 r3267  
    3939  INTEGER                         :: i,k,j
    4040  REAL                            :: pdtimeRG
     41  REAL                            :: smallest_mp
    4142  real conserv
    4243  real smfd
     
    4748! calcul des tendances liees au downdraft
    4849! =========================================
     50!
     51  smallest_mp = tiny(mp(1,1))
    4952!cdir collapse
    5053  qfeed(:,it) = 0.
     
    8891!!              zmd(i,j,k)=zmd(i,j+1,k)*min(1.,mp(i,j)/mp(i,j+1))
    8992!!           ENDif
    90            zmd(i,j,k)=zmd(i,j+1,k)*mp(i,j)/max(mp(i,j),max(mp(i,j+1),1.e-20))
     93           zmd(i,j,k)=zmd(i,j+1,k)*mp(i,j)/max(mp(i,j),mp(i,j+1),smallest_mp)
    9194        END DO
    9295     END DO
Note: See TracChangeset for help on using the changeset viewer.