Skip to content
Snippets Groups Projects
Commit 93e2c908 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Merge branch 'cherry-pick-994f9aca' into 'releases/2.7'

Merge branch 'fix-multigridstep-constructor-bug' into 'master'

See merge request !48
parents ee246228 4c1e8804
No related branches found
No related tags found
1 merge request!48Merge branch 'fix-multigridstep-constructor-bug' into 'master'
Pipeline #31457 passed
...@@ -54,7 +54,7 @@ namespace Dune { ...@@ -54,7 +54,7 @@ namespace Dune {
setSmoother(preSmoother,postSmoother); setSmoother(preSmoother,postSmoother);
basesolver_ = baseSolver; basesolver_ = std::shared_ptr<Solver>(baseSolver, [](auto*){} );
this->ignoreNodes_ = ignoreNodes; this->ignoreNodes_ = ignoreNodes;
} }
......
...@@ -85,6 +85,13 @@ struct MultigridTestSuite ...@@ -85,6 +85,13 @@ struct MultigridTestSuite
mgStep.setIgnore(p.ignore); mgStep.setIgnore(p.ignore);
mgStep.setBaseSolver(basesolver); mgStep.setBaseSolver(basesolver);
// create an unused second multigrid step just to check that the constructor works
MGStep alternativeStep(p.A, p.u, p.rhs,
1, 3, 3,
&smoother, &smoother,
&basesolver,
&p.ignore);
// create loop solver // create loop solver
Solver solver(mgStep, maxIterations, tol, p.energyNorm, Solver::FULL); Solver solver(mgStep, maxIterations, tol, p.energyNorm, Solver::FULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment