]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add assertion.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 16 Aug 1999 11:34:22 +0000 (11:34 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 16 Aug 1999 11:34:22 +0000 (11:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@1701 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/tria.cc

index 39d182a569594ff64a702dd0cd2bc4d9a3352c07..31787fcfab5b6263a677dd3121cb42a261eaa36f 100644 (file)
@@ -67,6 +67,10 @@ Triangulation<dim>::~Triangulation ()
 template <int dim>
 void Triangulation<dim>::clear () 
 {
+                                  // only allow this operation if there
+                                  // are no subscribers any more
+  Assert (n_subscriptions() == 0, ExcInternalError());
+  
   for (unsigned int i=0; i<levels.size(); ++i)
     delete levels[i];
   levels.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.