From 153fee692a6811a2837a0bcfa003ebeec0763845 Mon Sep 17 00:00:00 2001 From: Xavier Raynaud Date: Thu, 15 Mar 2012 16:16:31 +0100 Subject: [PATCH] decrease tolerance for x1-x0 in falsi. --- 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 d1da6224..9d86cd8f 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) >= 1e-2*eps) { + while (fabs(x1 - x0) >= 1e-9*eps) { double xnew = regulaFalsiStep(x0, x1, f0, f1); double fnew = f(xnew); // cout << "xnew = " << xnew << " fnew = " << fnew << endl;