Changeset 12515 for issm/trunk-jpl/src/c/shared/Numerics/OptimalSearch.cpp
- Timestamp:
- 06/22/12 16:56:14 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/c/shared/Numerics/OptimalSearch.cpp
r12513 r12515 63 63 //Stop the optimization? 64 64 if ((fabs(x2-x1)+seps)<tolerance || (fabs(fx2-fx1)+seps)<tolerance){ 65 _printf_(VerboseControl()," %s%g\n","optimization terminated: the current x satisfies the termination criteria using 'tolx' of " ,tolerance);65 if(VerboseControl()) _pprintLine_(" " << "optimization terminated: the current x satisfies the termination criteria using 'tolx' of " << tolerance); 66 66 loop=false; 67 67 } 68 68 else if (iter>=maxiter){ 69 _printf_(VerboseControl()," %s\n","exiting: Maximum number of iterations has been exceeded - increase 'maxiter'\n");69 if(VerboseControl()) _pprintLine_(" " << "exiting: Maximum number of iterations has been exceeded - increase 'maxiter'"); 70 70 loop=false; 71 71 }
Note:
See TracChangeset
for help on using the changeset viewer.