Skip to content
Snippets Groups Projects
Commit 42107c41 authored by Oliver Sander's avatar Oliver Sander Committed by sander@PCPOOL.MI.FU-BERLIN.DE
Browse files

The members presmoother_ and postsmoother_ are protected now. Write access

is provided via a new method setSmoother().

This is a first step towards allowing individual smoother objects for each
grid level.

[[Imported from SVN: r2983]]
parent 54a27b07
No related branches found
No related tags found
No related merge requests found
......@@ -169,10 +169,24 @@
*/
virtual void setMGType(int mu, int nu1, int nu2);
/** \brief Set the smoother iteration step */
virtual void setSmoother(LinearIterationStep<OperatorType, VectorType>* smoother) {
presmoother_ = postsmoother_ = smoother;
}
/** \brief Set pre- and post smoothers individually */
virtual void setSmoother(LinearIterationStep<OperatorType, VectorType>* preSmoother,
LinearIterationStep<OperatorType, VectorType>* postSmoother) {
presmoother_ = preSmoother;
postsmoother_ = postSmoother;
}
protected:
LinearIterationStep<OperatorType, VectorType>* presmoother_;
LinearIterationStep<OperatorType, VectorType>* postsmoother_;
public:
Solver* basesolver_;
protected:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment