Skip to content
Snippets Groups Projects
Commit fad32e71 authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

MultiGridSet: add overload to set pre- and postsmoother individually using `shared_ptr`

This matches the overloads to set both pre- and postsmoother to a
common smoother.
parent e00a15b6
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -178,6 +178,15 @@ namespace Dune { ...@@ -178,6 +178,15 @@ namespace Dune {
levelWiseSmoothers_.clear(); 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 */ /** \brief Set the smoother iteration step for a particular level */
virtual void setSmoother(LinearStepType* smoother, std::size_t level) virtual void setSmoother(LinearStepType* smoother, std::size_t level)
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment