Changeset 3253 for LMDZ6/trunk/libf


Ignore:
Timestamp:
Mar 12, 2018, 6:49:23 PM (7 years ago)
Author:
jyg
Message:

Regularization of a division by 0

File:
1 edited

Legend:

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

    r2320 r3253  
    8585     DO j=k-1,1,-1
    8686        DO i=1,klon
    87            if(mp(i,j+1).ne.0) then
    88               zmd(i,j,k)=zmd(i,j+1,k)*min(1.,mp(i,j)/mp(i,j+1))
    89            ENDif
     87!!           if(mp(i,j+1).ne.0) then
     88!!              zmd(i,j,k)=zmd(i,j+1,k)*min(1.,mp(i,j)/mp(i,j+1))
     89!!           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))
    9091        END DO
    9192     END DO
Note: See TracChangeset for help on using the changeset viewer.