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

[Cleanup] Kill an unused parameter

parent 91f329ba
No related branches found
No related tags found
No related merge requests found
......@@ -58,7 +58,6 @@ class MyBlockProblem : /* NOT PUBLIC */ BlockNonlinearGSProblem<ConvexProblem> {
MyBlockProblem(Dune::ParameterTree const &parset, ConvexProblem &problem)
: BNGSP(parset, problem),
maxEigenvalues_(problem.f.size()),
parset_(parset),
localBisection(0.0, 1.0, 0.0, true, 0.0) {
for (size_t i = 0; i < problem.f.size(); ++i) {
LocalVectorType eigenvalues;
......@@ -196,14 +195,12 @@ class MyBlockProblem : /* NOT PUBLIC */ BlockNonlinearGSProblem<ConvexProblem> {
/** \brief Constructs and returns an iterate object */
IterateObject getIterateObject() {
return IterateObject(parset_, localBisection, problem_, maxEigenvalues_);
return IterateObject(localBisection, problem_, maxEigenvalues_);
}
private:
std::vector<double> maxEigenvalues_;
Dune::ParameterTree const &parset_;
// problem data
using BNGSP::problem_;
......@@ -222,8 +219,7 @@ class MyBlockProblem<ConvexProblem>::IterateObject {
* \param bisection The class used to do a scalar bisection
* \param problem The problem including quadratic part and nonlinear part
*/
IterateObject(Dune::ParameterTree const &parset, Bisection const &bisection,
ConvexProblem const &problem,
IterateObject(Bisection const &bisection, ConvexProblem const &problem,
std::vector<double> const &maxEigenvalues)
: problem(problem),
maxEigenvalues_(maxEigenvalues),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment