Changeset 1744 for LMDZ5/trunk


Ignore:
Timestamp:
Apr 9, 2013, 8:31:40 AM (12 years ago)
Author:
Ehouarn Millour
Message:

Fix to avoid dividing by zero.
JYG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/phylmd/cv30_routines.F

    r1742 r1744  
    31063106            if(k.ge.icb(i).and.k.le.inb(i).and.
    31073107     &         j.le.inb(i)) then
    3108              epm(i,j,k)=1.-(1.-ep(i,j))*clw(i,j)/elij(i,k,j)
     3108!!jyg             epm(i,j,k)=1.-(1.-ep(i,j))*clw(i,j)/elij(i,k,j)
     3109             epm(i,j,k)=1.-(1.-ep(i,j))*clw(i,j)/
     3110     &                     max(elij(i,k,j),1.e-16)
     3111!!
    31093112             epm(i,j,k)=max(epm(i,j,k),0.0)
    31103113            endif
Note: See TracChangeset for help on using the changeset viewer.