]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Correct fix of before and document why.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Nov 1999 14:53:12 +0000 (14:53 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 19 Nov 1999 14:53:12 +0000 (14:53 +0000)
git-svn-id: https://svn.dealii.org/trunk@1902 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 8ea78b4a28ab824607378ce52f056413e06d0f42..25fa926268982e23a35dcd6f3a01b9b39b60b136 100644 (file)
@@ -106,6 +106,13 @@ MGBase::level_mgstep(const unsigned int        level,
   
                                   // do recursion
   level_mgstep(level-1, pre_smooth, post_smooth, coarse_grid_solver);
+
+                                  // reset size of the auxiliary
+                                  // vector, since it has been
+                                  // resized in the recursive call to
+                                  // level_mgstep directly above
+  t.reinit(solution[level].size());
+
                                   // do coarse grid correction
   transfer->prolongate(level, t, solution[level-1]);
   solution[level] += t;
index 8ea78b4a28ab824607378ce52f056413e06d0f42..25fa926268982e23a35dcd6f3a01b9b39b60b136 100644 (file)
@@ -106,6 +106,13 @@ MGBase::level_mgstep(const unsigned int        level,
   
                                   // do recursion
   level_mgstep(level-1, pre_smooth, post_smooth, coarse_grid_solver);
+
+                                  // reset size of the auxiliary
+                                  // vector, since it has been
+                                  // resized in the recursive call to
+                                  // level_mgstep directly above
+  t.reinit(solution[level].size());
+
                                   // do coarse grid correction
   transfer->prolongate(level, t, solution[level-1]);
   solution[level] += t;

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.