]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix the same big memory leak and failing assertion as in convergence.cc
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Dec 1999 09:32:10 +0000 (09:32 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 21 Dec 1999 09:32:10 +0000 (09:32 +0000)
git-svn-id: https://svn.dealii.org/trunk@2099 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/Attic/examples/multigrid/multigrid.cc
tests/big-tests/multigrid/multigrid.cc

index a4bfcc9fab385854455b6ee68b03b8a166677f39..2341d34c145b8364f18777a952b42139fab02101 100644 (file)
@@ -88,7 +88,7 @@ class PoissonProblem {
     typedef TriaActiveIterator<dim, Assembler<dim> > active_assemble_iterator;
 
     PoissonProblem (unsigned int order);
-    virtual ~PoissonProblem () {};
+    virtual ~PoissonProblem ();
     
     void clear ();
     void create_new ();
@@ -293,6 +293,13 @@ PoissonProblem<dim>::PoissonProblem (unsigned int order) :
 
 
 
+template <int dim>
+PoissonProblem<dim>::~PoissonProblem () 
+{
+  clear ();
+};
+
+
 
 template <int dim>
 void PoissonProblem<dim>::clear () {  
index a4bfcc9fab385854455b6ee68b03b8a166677f39..2341d34c145b8364f18777a952b42139fab02101 100644 (file)
@@ -88,7 +88,7 @@ class PoissonProblem {
     typedef TriaActiveIterator<dim, Assembler<dim> > active_assemble_iterator;
 
     PoissonProblem (unsigned int order);
-    virtual ~PoissonProblem () {};
+    virtual ~PoissonProblem ();
     
     void clear ();
     void create_new ();
@@ -293,6 +293,13 @@ PoissonProblem<dim>::PoissonProblem (unsigned int order) :
 
 
 
+template <int dim>
+PoissonProblem<dim>::~PoissonProblem () 
+{
+  clear ();
+};
+
+
 
 template <int dim>
 void PoissonProblem<dim>::clear () {  

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.