Ignore:
Timestamp:
04/04/14 15:40:43 (11 years ago)
Author:
Mathieu Morlighem
Message:

NEW: done with X-TH LA

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/c/shared/Numerics/NewtonSolveDnorm.cpp

    r17629 r17650  
    1515        /*trivial solution*/
    1616        if(c3==0.){
    17                 *pdnorm =0.;
     17                *pdnorm = 0.;
    1818                return 0;
    1919        }
     
    2626
    2727        /*Initial guess*/
     28        _assert_(dnorm>0.);
    2829        IssmDouble y1 = log10(dnorm);
    2930
     
    4142                }
    4243
    43                 if(counter>50) _error_("Could not converge");
     44                if(counter>50) break;
    4445        }
     46
     47        /*Avoid extremely large values that indicate non convergence*/
     48        if(y2>50.) y2 = 50;
    4549
    4650        /*Assign output pointer*/
Note: See TracChangeset for help on using the changeset viewer.