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
No related branches found
No related tags found
No related merge requests found
......@@ -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
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment