From: wolf Date: Fri, 19 Nov 1999 14:41:58 +0000 (+0000) Subject: Remove redundant reinit and doc update. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=067ab785cbbfaa215d78f99ba59b1b6d72a84942;p=dealii-svn.git Remove redundant reinit and doc update. git-svn-id: https://svn.dealii.org/trunk@1901 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 2316d97a3b..8ea78b4a28 100644 --- a/deal.II/deal.II/source/multigrid/mg_base.cc +++ b/deal.II/deal.II/source/multigrid/mg_base.cc @@ -107,13 +107,14 @@ MGBase::level_mgstep(const unsigned int level, // do recursion level_mgstep(level-1, pre_smooth, post_smooth, coarse_grid_solver); // do coarse grid correction - t.reinit(solution[level].size()); transfer->prolongate(level, t, solution[level-1]); - solution[level].add(t); + solution[level] += t; - // smoothing (modify s again) + // smoothing (modify solution again) +//TODO: what happens here? smooth overwrites the solution[level], +//TODO: so the previous two statements should have no effect. No? post_smooth.smooth(level, solution[level], defect[level]); -} +}; ////////////////////////////////////////////////////////////////////// diff --git a/deal.II/lac/source/mgbase.cc b/deal.II/lac/source/mgbase.cc index 2316d97a3b..8ea78b4a28 100644 --- a/deal.II/lac/source/mgbase.cc +++ b/deal.II/lac/source/mgbase.cc @@ -107,13 +107,14 @@ MGBase::level_mgstep(const unsigned int level, // do recursion level_mgstep(level-1, pre_smooth, post_smooth, coarse_grid_solver); // do coarse grid correction - t.reinit(solution[level].size()); transfer->prolongate(level, t, solution[level-1]); - solution[level].add(t); + solution[level] += t; - // smoothing (modify s again) + // smoothing (modify solution again) +//TODO: what happens here? smooth overwrites the solution[level], +//TODO: so the previous two statements should have no effect. No? post_smooth.smooth(level, solution[level], defect[level]); -} +}; //////////////////////////////////////////////////////////////////////