Changeset 27171


Ignore:
Timestamp:
08/01/22 13:13:13 (3 years ago)
Author:
Mathieu Morlighem
Message:

CHG: adding a small number to the denominator in case it is 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/solutionsequences/convergence.cpp

    r27170 r27171  
    3838        KUoldF=KUold->Duplicate();KUold->Copy(KUoldF); KUoldF->AYPX(pf,-1.0);
    3939        nKUoldF=KUoldF->Norm(NORM_TWO);
    40         nF=pf->Norm(NORM_TWO);
     40        nF=pf->Norm(NORM_TWO)+1.e-14;
    4141        res=nKUoldF/nF;
    4242        if (xIsNan<IssmDouble>(res)){
Note: See TracChangeset for help on using the changeset viewer.