From e36c5bd46f45c459d6a4f0fac2636c20456c051b Mon Sep 17 00:00:00 2001 From: Xavier Raynaud Date: Fri, 24 Feb 2012 17:17:05 +0100 Subject: [PATCH] Decrease tolerance requirement for x1-x0 in modifiedregularFalsi --- opm/core/utility/RootFinders.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opm/core/utility/RootFinders.hpp b/opm/core/utility/RootFinders.hpp index fdc4607d..d1da6224 100644 --- a/opm/core/utility/RootFinders.hpp +++ b/opm/core/utility/RootFinders.hpp @@ -91,7 +91,7 @@ namespace Opm iterations_used = 0; // In every iteraton, x1 is the last point computed, // 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 fnew = f(xnew); // cout << "xnew = " << xnew << " fnew = " << fnew << endl;