From: Lei Qiao Date: Mon, 12 Oct 2015 23:53:55 +0000 (-0500) Subject: add signal post_refinement_on_cell to Triangulation. X-Git-Tag: v8.4.0-rc2~285^2~10 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1790ec7d441e7840830d1195cde1bc101b04db81;p=dealii.git add signal post_refinement_on_cell to Triangulation. --- diff --git a/include/deal.II/grid/tria.h b/include/deal.II/grid/tria.h index d3eeaef749..a4dfba2c24 100644 --- a/include/deal.II/grid/tria.h +++ b/include/deal.II/grid/tria.h @@ -1921,6 +1921,7 @@ public: boost::signals2::signal create; boost::signals2::signal pre_refinement; boost::signals2::signal post_refinement; + boost::signals2::signal::cell_iterator &cell)> post_refinement_on_cell; boost::signals2::signal &original_tria)> copy; boost::signals2::signal clear; boost::signals2::signal any_change; diff --git a/source/grid/tria.cc b/source/grid/tria.cc index adbafbc39a..a68cf0a8ff 100644 --- a/source/grid/tria.cc +++ b/source/grid/tria.cc @@ -4385,6 +4385,8 @@ namespace internal right_neighbor->set_neighbor (nbnb, second_child); } } + // inform all listeners that cell refinement is done + triangulation.signals.post_refinement_on_cell(cell); } } @@ -4742,6 +4744,8 @@ namespace internal internal::int2type(), internal::int2type())) cells_with_distorted_children.distorted_cells.push_back (cell); + // inform all listeners that cell refinement is done + triangulation.signals.post_refinement_on_cell(cell); } } @@ -8354,6 +8358,9 @@ namespace internal // note that the refinement flag was already cleared // at the beginning of this loop + + // inform all listeners that cell refinement is done + triangulation.signals.post_refinement_on_cell(hex); } } @@ -8751,7 +8758,7 @@ Triangulation (const MeshSmoothing smooth_grid, = new std::map(); } - // connect the any_change signal to the other signals + // connect the any_change signal to the other top level signals signals.create.connect (signals.any_change); signals.post_refinement.connect (signals.any_change); signals.clear.connect (signals.any_change);