diff --git a/dune/solvers/iterationsteps/multigridstep.hh b/dune/solvers/iterationsteps/multigridstep.hh index 1617a79a5c5cafef7848b1af348daded7cc7f852..6d88a5e04e0d59a3112d3a3301c30419ba7a664a 100644 --- a/dune/solvers/iterationsteps/multigridstep.hh +++ b/dune/solvers/iterationsteps/multigridstep.hh @@ -178,6 +178,15 @@ namespace Dune { levelWiseSmoothers_.clear(); } + virtual void setSmoother(std::shared_ptr<LinearStepType> preSmoother, + std::shared_ptr<LinearStepType> postSmoother) + { + presmootherDefault_ = std::move(preSmoother); + postsmootherDefault_ = std::move(postSmoother); + + levelWiseSmoothers_.clear(); + } + /** \brief Set the smoother iteration step for a particular level */ virtual void setSmoother(LinearStepType* smoother, std::size_t level) {