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> { ...@@ -58,7 +58,6 @@ class MyBlockProblem : /* NOT PUBLIC */ BlockNonlinearGSProblem<ConvexProblem> {
MyBlockProblem(Dune::ParameterTree const &parset, ConvexProblem &problem) MyBlockProblem(Dune::ParameterTree const &parset, ConvexProblem &problem)
: BNGSP(parset, problem), : BNGSP(parset, problem),
maxEigenvalues_(problem.f.size()), maxEigenvalues_(problem.f.size()),
parset_(parset),
localBisection(0.0, 1.0, 0.0, true, 0.0) { localBisection(0.0, 1.0, 0.0, true, 0.0) {
for (size_t i = 0; i < problem.f.size(); ++i) { for (size_t i = 0; i < problem.f.size(); ++i) {
LocalVectorType eigenvalues; LocalVectorType eigenvalues;
...@@ -196,14 +195,12 @@ class MyBlockProblem : /* NOT PUBLIC */ BlockNonlinearGSProblem<ConvexProblem> { ...@@ -196,14 +195,12 @@ class MyBlockProblem : /* NOT PUBLIC */ BlockNonlinearGSProblem<ConvexProblem> {
/** \brief Constructs and returns an iterate object */ /** \brief Constructs and returns an iterate object */
IterateObject getIterateObject() { IterateObject getIterateObject() {
return IterateObject(parset_, localBisection, problem_, maxEigenvalues_); return IterateObject(localBisection, problem_, maxEigenvalues_);
} }
private: private:
std::vector<double> maxEigenvalues_; std::vector<double> maxEigenvalues_;
Dune::ParameterTree const &parset_;
// problem data // problem data
using BNGSP::problem_; using BNGSP::problem_;
...@@ -222,8 +219,7 @@ class MyBlockProblem<ConvexProblem>::IterateObject { ...@@ -222,8 +219,7 @@ class MyBlockProblem<ConvexProblem>::IterateObject {
* \param bisection The class used to do a scalar bisection * \param bisection The class used to do a scalar bisection
* \param problem The problem including quadratic part and nonlinear part * \param problem The problem including quadratic part and nonlinear part
*/ */
IterateObject(Dune::ParameterTree const &parset, Bisection const &bisection, IterateObject(Bisection const &bisection, ConvexProblem const &problem,
ConvexProblem const &problem,
std::vector<double> const &maxEigenvalues) std::vector<double> const &maxEigenvalues)
: problem(problem), : problem(problem),
maxEigenvalues_(maxEigenvalues), 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