]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove assertion so a mesh can be changed with a DoFHandler attached.
authorGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 10 Mar 2006 12:33:52 +0000 (12:33 +0000)
committerGuido Kanschat <dr.guido.kanschat@gmail.com>
Fri, 10 Mar 2006 12:33:52 +0000 (12:33 +0000)
git-svn-id: https://svn.dealii.org/trunk@12575 0785d39b-7218-0410-832d-ea1e28bc413d

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

index 61f41a99316793a91a5864fc92a4c12de55e46fe..c593a5ed29a75533af01ed24a90cc6d7ec815343 100644 (file)
@@ -84,10 +84,14 @@ Triangulation<dim>::~Triangulation ()
 template <int dim>
 void Triangulation<dim>::clear () 
 {
+//TODO:[WB] Why this assertion?
+// If we allow refinement with depending objects, we should also
+// allow changing the mesh completely.
+  
                                   // only allow this operation if
                                   // there are no subscribers any
                                   // more
-  Assert (n_subscriptions() == 0, ExcInternalError());
+//  Assert (n_subscriptions() == 0, ExcInternalError());
   
   clear_despite_subscriptions();
 }

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.