]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Also disconnect from the triangulation when we disconnect from the cell.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 3 Jun 2011 12:40:53 +0000 (12:40 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 3 Jun 2011 12:40:53 +0000 (12:40 +0000)
git-svn-id: https://svn.dealii.org/trunk@23785 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/fe/fe_values.cc

index fc38ad5f80651e18f65fbb6509131fd535dac200..6b83ad9d549befa72a1c38ca01616c2d1e365741 100644 (file)
@@ -3246,6 +3246,11 @@ FEValuesBase< dim, spacedim >::invalidate_present_cell ()
   // if there is no present cell, then we shouldn't be
   // connected via a signal to a triangulation
   Assert (present_cell.get() != 0, ExcInternalError());
+
+                                  // so delete the present cell and
+                                  // disconnect from the signal we have with
+                                  // it
+  tria_listener.disconnect ();
   present_cell.reset ();
 }
 

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.