Decrease tolerance requirement for x1-x0 in modifiedregularFalsi

This commit is contained in:
Xavier Raynaud 2012-02-24 17:17:05 +01:00
parent 203a384324
commit e36c5bd46f

View File

@ -91,7 +91,7 @@ namespace Opm
iterations_used = 0; iterations_used = 0;
// In every iteraton, x1 is the last point computed, // In every iteraton, x1 is the last point computed,
// and x0 is the last point computed that makes it a bracket. // and x0 is the last point computed that makes it a bracket.
while (fabs(x1 - x0) >= 0.95*eps) { while (fabs(x1 - x0) >= 1e-2*eps) {
double xnew = regulaFalsiStep(x0, x1, f0, f1); double xnew = regulaFalsiStep(x0, x1, f0, f1);
double fnew = f(xnew); double fnew = f(xnew);
// cout << "xnew = " << xnew << " fnew = " << fnew << endl; // cout << "xnew = " << xnew << " fnew = " << fnew << endl;