]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix and make it compile: PointerMatrix has no clear function. Set pointers to zero...
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Feb 2003 13:07:35 +0000 (13:07 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 4 Feb 2003 13:07:35 +0000 (13:07 +0000)
git-svn-id: https://svn.dealii.org/trunk@7013 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/include/multigrid/mg_smoother.h

index e829737302aea21282c8b3207097a8124bd36e9c..56a415958df3933e38dc2d7d2c732c31e7a3dbca 100644 (file)
@@ -408,7 +408,11 @@ inline void
 MGSmootherRelaxation<MATRIX, RELAX, VECTOR>::clear ()
 {
   smoothers.clear();
-  matrices.clear();
+  
+  unsigned int i=matrices.get_minlevel(),
+       max_level=matrices.get_maxlevel();
+  for (; i<=max_level; ++i)
+    matrices[i]=0;
 }
 
 

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.