From b2a3ba9e09b5039b2631285a48be4824196c1a8d Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Mon, 31 Oct 2011 14:08:56 +0100
Subject: [PATCH] Create bisection object just once

---
 src/myblockproblem.hh | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/myblockproblem.hh b/src/myblockproblem.hh
index b8c2415d..35af9cfc 100644
--- a/src/myblockproblem.hh
+++ b/src/myblockproblem.hh
@@ -32,8 +32,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
   class IterateObject;
 
   MyBlockProblem(MyConvexProblemType& problem) : problem(problem) {
-    // TODO: Is it clever to create a bisection here?
-    bisection = Bisection(0.0, 1.0, 1e-15, true, 1e-14);
+    bisection = Bisection(0.0, 1.0, 1e-12, true, 0);
   };
 
   /** \brief Constructs and returns an iterate object */
@@ -119,7 +118,7 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
       Dune::SampleFunctional<block_size> localJ(*localA, localb, phi);
 
       LocalVectorType correction;
-      Dune::minimise(localJ, ui, 10); // FIXME: hardcoded value
+      Dune::minimise(localJ, ui, 10, bisection); // FIXME: hardcoded value
     }
   }
 
-- 
GitLab