From: Wolfgang Bangerth Date: Mon, 6 Jun 2016 21:50:59 +0000 (-0500) Subject: Reorder operations. X-Git-Tag: v8.5.0-rc1~984^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2671%2Fhead;p=dealii.git Reorder operations. First clear all data before triggering the 'clear' signal in the triangulation, rather than putting the signal code somewhere in the middle. --- diff --git a/source/grid/tria.cc b/source/grid/tria.cc index a8de820411..4b76e7b8d5 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -9024,10 +9024,13 @@ Triangulation::~Triangulation () template void Triangulation::clear () { + // clear all content of the triangulation... clear_despite_subscriptions(); - signals.clear(); periodic_face_pairs_level_0.clear(); periodic_face_map.clear(); + + // ...and then notify listeners to it + signals.clear(); }