Skip to content
Snippets Groups Projects
Commit f7d81365 authored by Markus Blatt's avatar Markus Blatt
Browse files

[Bugfix] Fixes preparation of fine level system after coarse grid correction.

For the postsmmothing to work we have to reset context.lhs to 0
which still contains the update from the last presmoothing step.
This patch does this.
parent 7fc22ee8
Branches
Tags
No related merge requests found
......@@ -398,14 +398,13 @@ public:
context.matrix=&operator_;
// Presmoothing
presmooth(context, preSteps_);
//Coarse grid correction
policy_->moveToCoarseLevel(*context.rhs);
InverseOperatorResult res;
coarseSolver_->apply(policy_->getCoarseLevelLhs(), policy_->getCoarseLevelRhs(), res);
policy_->moveToFineLevel(*context.update);
// Postsmoothing
*context.lhs=0;
postsmooth(context, postSteps_);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment