Skip to content
Snippets Groups Projects
Commit cf9d872e authored by Jonathan Youett's avatar Jonathan Youett
Browse files

Deprecate setSmoother taking raw pointer and make them non-virtual

parent 429ed84d
Branches
No related tags found
1 merge request!26Feature/multigridstep rework set smoother
Pipeline #12087 failed
......@@ -153,7 +153,8 @@ namespace Dune {
virtual void setMGType(int mu, int nu1, int nu2);
/** \brief Set the smoother iteration step */
virtual void setSmoother(LinearStepType* smoother)
DUNE_DEPRECATED_MSG("Consider setting the smoother via smart pointer, reference or temporaries instead.")
void setSmoother(LinearStepType* smoother)
{
presmootherDefault_ = postsmootherDefault_ = Dune::stackobject_to_shared_ptr(*smoother);
......@@ -170,8 +171,9 @@ namespace Dune {
}
/** \brief Set pre- and post smoothers individually */
virtual void setSmoother(LinearStepType* preSmoother,
LinearStepType* postSmoother)
DUNE_DEPRECATED_MSG("Consider setting the smoother via smart pointer, reference or temporaries instead.")
void setSmoother(LinearStepType* preSmoother,
LinearStepType* postSmoother)
{
presmootherDefault_ = Dune::stackobject_to_shared_ptr(*preSmoother);
postsmootherDefault_ = Dune::stackobject_to_shared_ptr(*postSmoother);
......@@ -188,7 +190,8 @@ namespace Dune {
}
/** \brief Set the smoother iteration step for a particular level */
virtual void setSmoother(LinearStepType* smoother, std::size_t level)
DUNE_DEPRECATED_MSG("Consider setting the smoother via smart pointer, reference or temporaries instead.")
void setSmoother(LinearStepType* smoother, std::size_t level)
{
levelWiseSmoothers_[level] = Dune::stackobject_to_shared_ptr(*smoother);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment