- Timestamp:
- 04/04/14 15:40:43 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Numerics/NewtonSolveDnorm.cpp
r17629 r17650 15 15 /*trivial solution*/ 16 16 if(c3==0.){ 17 *pdnorm = 0.;17 *pdnorm = 0.; 18 18 return 0; 19 19 } … … 26 26 27 27 /*Initial guess*/ 28 _assert_(dnorm>0.); 28 29 IssmDouble y1 = log10(dnorm); 29 30 … … 41 42 } 42 43 43 if(counter>50) _error_("Could not converge");44 if(counter>50) break; 44 45 } 46 47 /*Avoid extremely large values that indicate non convergence*/ 48 if(y2>50.) y2 = 50; 45 49 46 50 /*Assign output pointer*/
Note:
See TracChangeset
for help on using the changeset viewer.