]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Remove redundant reinit and doc update.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Nov 1999 14:41:58 +0000 (14:41 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Nov 1999 14:41:58 +0000 (14:41 +0000)
git-svn-id: https://svn.dealii.org/trunk@1901 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/multigrid/mg_base.cc
deal.II/lac/source/mgbase.cc

index 2316d97a3bc0ef583ac2bca93af0a367cb490f15..8ea78b4a28ab824607378ce52f056413e06d0f42 100644 (file)
@@ -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]);
-}
+};
 
 
 //////////////////////////////////////////////////////////////////////
index 2316d97a3bc0ef583ac2bca93af0a367cb490f15..8ea78b4a28ab824607378ce52f056413e06d0f42 100644 (file)
@@ -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]);
-}
+};
 
 
 //////////////////////////////////////////////////////////////////////

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.