Skip to content
Snippets Groups Projects
Commit b2a3ba9e authored by Elias Pipping's avatar Elias Pipping Committed by Elias Pipping
Browse files

Create bisection object just once

parent 0f3c7854
Branches
No related tags found
No related merge requests found
...@@ -32,8 +32,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem { ...@@ -32,8 +32,7 @@ template <class MyConvexProblemTypeTEMPLATE> class MyBlockProblem {
class IterateObject; class IterateObject;
MyBlockProblem(MyConvexProblemType& problem) : problem(problem) { MyBlockProblem(MyConvexProblemType& problem) : problem(problem) {
// TODO: Is it clever to create a bisection here? bisection = Bisection(0.0, 1.0, 1e-12, true, 0);
bisection = Bisection(0.0, 1.0, 1e-15, true, 1e-14);
}; };
/** \brief Constructs and returns an iterate object */ /** \brief Constructs and returns an iterate object */
...@@ -119,7 +118,7 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject { ...@@ -119,7 +118,7 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject {
Dune::SampleFunctional<block_size> localJ(*localA, localb, phi); Dune::SampleFunctional<block_size> localJ(*localA, localb, phi);
LocalVectorType correction; LocalVectorType correction;
Dune::minimise(localJ, ui, 10); // FIXME: hardcoded value Dune::minimise(localJ, ui, 10, bisection); // FIXME: hardcoded value
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment