]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix bug.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 1 Mar 1999 12:59:32 +0000 (12:59 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 1 Mar 1999 12:59:32 +0000 (12:59 +0000)
git-svn-id: https://svn.dealii.org/trunk@935 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/time_dependent.cc

index d59a679690158a29a570d6cdfea250bdc740f4c4..eba4f604cf7e70a0958f4aad5c306423cfc60b52 100644 (file)
@@ -362,8 +362,14 @@ TimeStepBase_Tria<dim>::TimeStepBase_Tria (const double              time,
 
 template <int dim>
 TimeStepBase_Tria<dim>::~TimeStepBase_Tria () 
-{  
-  Assert (tria!=0, ExcInternalError());
+{
+  if (!flags.delete_and_rebuild_tria)
+    {
+      tria->unsubscribe ();
+      delete tria;
+    }
+  else
+    Assert (tria==0, ExcInternalError());
 
   coarse_grid.unsubscribe();
 };

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.