From a3e550b9a34d994e989a0800de81575bf8173a3e Mon Sep 17 00:00:00 2001 From: Elias Pipping <elias.pipping@fu-berlin.de> Date: Mon, 9 Jan 2012 16:02:12 +0100 Subject: [PATCH] Set x_old to 0.0 for inexact minimisation --- dune/tectonic/samplefunctional.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dune/tectonic/samplefunctional.hh b/dune/tectonic/samplefunctional.hh index 08390444..37678b53 100644 --- a/dune/tectonic/samplefunctional.hh +++ b/dune/tectonic/samplefunctional.hh @@ -197,9 +197,7 @@ void minimise(Functional const J, typename Functional::SmallVector &x, } int count; - // FIXME: The value of x_old should not matter if the factor is 1.0, - // correct? - double const stepsize = bisection.minimize(JRest, 0.0, 1.0, count); + double const stepsize = bisection.minimize(JRest, 0.0, 0.0, count); dverb << "Number of iterations in the bisection method: " << count << std::endl; ; -- GitLab