]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Also clear triangulation signals on destruction 4459/head
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 1 Jun 2017 13:11:17 +0000 (15:11 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Thu, 1 Jun 2017 16:37:11 +0000 (18:37 +0200)
include/deal.II/grid/tria.h
source/grid/tria.cc

index 5ebac078a93e12a07df1108a5c83461fe4d5e371..bbda49e6431ea9bf68663b6c8aecebe7eb6341b8 100644 (file)
@@ -2120,9 +2120,10 @@ public:
 
     /**
      * This signal is triggered whenever the Triangulation::clear() function
-     * is called. This signal is also triggered when loading a triangulation
-     * from an archive via Triangulation::load() as the previous content of
-     * the triangulation is first destroyed.
+     * is called and in the destructor of the triangulation. This signal is
+     * also triggered when loading a triangulation from an archive via
+     * Triangulation::load() as the previous content of the triangulation is
+     * first destroyed.
      *
      * The signal is triggered before the data structures of the
      * triangulation are destroyed. In other words, the functions
index 1c86b45541fcd5aab4139d9f21ec8760ea70b8db..24f9ac015a9edb26c04f0e5f585e9fff5eec6d73 100644 (file)
@@ -9039,6 +9039,9 @@ Triangulation<dim, spacedim>::operator= (Triangulation<dim, spacedim> &&tria)
 template <int dim, int spacedim>
 Triangulation<dim, spacedim>::~Triangulation ()
 {
+  // notify listeners that the triangulation is going down...
+  signals.clear();
+
   levels.clear ();
 
   // the vertex_to_boundary_id_map_1d field should be unused except in

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.