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

There are no smoothers and aggregates maps on the coarsest level.

[[Imported from SVN: r332]]
parent 5ef4607a
No related branches found
No related tags found
No related merge requests found
......@@ -202,19 +202,25 @@ namespace Dune
++lhs;
++update;
++defect;
++smoother;
++matrix;
++aggregates;
++level;
*lhs=0;
if(matrix != matrices_->matrices().coarsest()) {
++smoother;
++aggregates;
}
// next level
mgc(smoother, matrix, aggregates, lhs, update, rhs, defect);
if(matrix != matrices_->matrices().coarsest()) {
--smoother;
--aggregates;
}
--level;
//prolongate (coarse x is the new update)
--matrix;
--aggregates;
--update;
Transfer<typename MatrixHierarchy::AggregatesMap::AggregateDescriptor,Range>
::prolongate(*(*aggregates), *update, *lhs, 0.8);
......@@ -222,7 +228,6 @@ namespace Dune
--lhs;
--rhs;
--defect;
--smoother;
// postsmoothing
for(std::size_t i=0; i < steps_; ++i) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment