From: wolf Date: Fri, 19 Nov 1999 14:30:52 +0000 (+0000) Subject: Doc update and renaming. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=327e559da7269488ef0c661936f26caffcb9d0a2;p=dealii-svn.git Doc update and renaming. git-svn-id: https://svn.dealii.org/trunk@1900 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/deal.II/source/multigrid/mg_base.cc b/deal.II/deal.II/source/multigrid/mg_base.cc index 3662347101..2316d97a3b 100644 --- a/deal.II/deal.II/source/multigrid/mg_base.cc +++ b/deal.II/deal.II/source/multigrid/mg_base.cc @@ -100,7 +100,9 @@ MGBase::level_mgstep(const unsigned int level, level_vmult(level, t, solution[level], defect[level]); // make t rhs of lower level - transfer->restrict(level, defect[level-1], t); +//TODO: this function adds the restricted t to defect[level-1]. +//TODO: why don't we have to clear it before? + transfer->restrict_and_add (level, defect[level-1], t); // do recursion level_mgstep(level-1, pre_smooth, post_smooth, coarse_grid_solver); diff --git a/deal.II/lac/source/mgbase.cc b/deal.II/lac/source/mgbase.cc index 3662347101..2316d97a3b 100644 --- a/deal.II/lac/source/mgbase.cc +++ b/deal.II/lac/source/mgbase.cc @@ -100,7 +100,9 @@ MGBase::level_mgstep(const unsigned int level, level_vmult(level, t, solution[level], defect[level]); // make t rhs of lower level - transfer->restrict(level, defect[level-1], t); +//TODO: this function adds the restricted t to defect[level-1]. +//TODO: why don't we have to clear it before? + transfer->restrict_and_add (level, defect[level-1], t); // do recursion level_mgstep(level-1, pre_smooth, post_smooth, coarse_grid_solver);