Commit 9e669dd3 authored by Carsten Gräser's avatar Carsten Gräser
Browse files

Add possibility to do nonlinear postsmoothing in TNNMG

parent 1fbd2501
Pipeline #36009 passed with stage
in 10 minutes and 9 seconds
......@@ -118,6 +118,11 @@ public:
preSmoothingSteps_ = i;
}
void setPostSmoothingSteps(std::size_t i)
{
postSmoothingSteps_ = i;
}
/**
* \brief Do one TNNMG step
*/
......@@ -160,6 +165,11 @@ public:
correction_ *= dampingFactor_;
x += correction_;
// Nonlinear presmoothing
for (std::size_t i=0; i<postSmoothingSteps_; ++i)
nonlinearSmoother_->iterate();
}
/**
......@@ -184,6 +194,7 @@ private:
std::shared_ptr<IterationStep<Vector,BitVector> > nonlinearSmoother_;
std::size_t preSmoothingSteps_ = 1;
std::size_t postSmoothingSteps_ = 0;
std::shared_ptr<Linearization> linearization_;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment