diff --git a/dune/tectonic/myblockproblem.hh b/dune/tectonic/myblockproblem.hh index 1910eadefeec953663e62be7ae83b075dca64af5..56b067988220bc2d53a0f02e9a56f58e99f54467 100644 --- a/dune/tectonic/myblockproblem.hh +++ b/dune/tectonic/myblockproblem.hh @@ -264,7 +264,9 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject { */ IterateObject(Dune::ParameterTree const &parset, Bisection const &bisection, MyConvexProblemType const &problem) - : parset(parset), problem(problem), bisection(bisection) {} + : problem(problem), + bisection(bisection), + localsteps(parset.get<size_t>("localsolver.steps")) {} public: /** \brief Set the current iterate */ @@ -323,14 +325,11 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject { ignore_component); LocalVectorType correction; - Dune::minimise(localJ, ui, parset.get<size_t>("localsolver.steps"), - bisection); + Dune::minimise(localJ, ui, localsteps, bisection); } } private: - Dune::ParameterTree const &parset; - // problem data MyConvexProblemType const &problem; @@ -340,6 +339,8 @@ class MyBlockProblem<MyConvexProblemTypeTEMPLATE>::IterateObject { // state data for smoothing procedure used by: // setIterate, updateIterate, solveLocalProblem VectorType u; + + size_t const localsteps; }; #endif