Changeset 13036 for issm/trunk-jpl/src/c/shared/Numerics/OptimalSearch.cpp
- Timestamp:
- 08/14/12 16:58:21 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Numerics/OptimalSearch.cpp
r12832 r13036 41 41 //get the value of the function at the first boundary 42 42 fx1= (*f)(x1,optargs); 43 if (xIsNan<IssmDouble>(fx1)) _error 2_("Function evaluation returned NaN");43 if (xIsNan<IssmDouble>(fx1)) _error_("Function evaluation returned NaN"); 44 44 cout<<setprecision(5); 45 45 if(VerboseControl()) _pprintLine_(""); … … 57 57 iter++; 58 58 fx2 = (*f)(x2,optargs); 59 if (xIsNan<IssmDouble>(fx2)) _error 2_("Function evaluation returned NaN");59 if (xIsNan<IssmDouble>(fx2)) _error_("Function evaluation returned NaN"); 60 60 if(VerboseControl()) 61 61 _pprintLine_(" "<<setw(5)<<iter<<" "<<setw(12)<<x2<<" "<<setw(12)<<fx2<<" "<<(fabs(x2-x1)>fabs(fx2-fx1)?fabs(fx2-fx1):fabs(x2-x1)));
Note:
See TracChangeset
for help on using the changeset viewer.