From: Marc Fehling Date: Thu, 28 Feb 2019 12:24:55 +0000 (+0100) Subject: Complete signals for distributed_save|load. X-Git-Tag: v9.1.0-rc1~315^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9b59e0792b7fa73c93341712e3033156c57b458;p=dealii.git Complete signals for distributed_save|load. --- diff --git a/include/deal.II/grid/tria.h b/include/deal.II/grid/tria.h index 45e90441ff..b47941a4ea 100644 --- a/include/deal.II/grid/tria.h +++ b/include/deal.II/grid/tria.h @@ -2335,6 +2335,21 @@ public: */ boost::signals2::signal pre_distributed_save; + /** + * This signal is triggered at the end of execution of the + * parallel::distributed::Triangulation::save() + * function when the triangulation has reached its final state. + */ + boost::signals2::signal post_distributed_save; + + /** + * This signal is triggered at the beginning of execution of the + * parallel::distributed::Triangulation::load() + * function. At the time this signal is triggered, the triangulation + * is still unchanged. + */ + boost::signals2::signal pre_distributed_load; + /** * This signal is triggered at the end of execution of the * parallel::distributed::Triangulation::load() diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index 5fe3afb1c8..9da8894cd1 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -2753,6 +2753,9 @@ namespace parallel tria->cell_attached_data.pack_callbacks_fixed.clear(); tria->cell_attached_data.pack_callbacks_variable.clear(); } + + // signal that serialization has finished + this->signals.post_distributed_save(); } @@ -2771,6 +2774,8 @@ namespace parallel ExcMessage( "Triangulation may only contain coarse cells when calling load().")); + // signal that de-serialization is going to happen + this->signals.pre_distributed_load(); if (parallel_ghost != nullptr) {