]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Complete signals for distributed_save|load.
authorMarc Fehling <marc.fehling@gmx.net>
Thu, 28 Feb 2019 12:24:55 +0000 (13:24 +0100)
committerMarc Fehling <marc.fehling@gmx.net>
Thu, 28 Feb 2019 12:24:55 +0000 (13:24 +0100)
include/deal.II/grid/tria.h
source/distributed/tria.cc

index 45e90441ff567a6bb74f928d2b3d2a4654bb8739..b47941a4ea0dcdfa20733370ce556147c02253fb 100644 (file)
@@ -2335,6 +2335,21 @@ public:
      */
     boost::signals2::signal<void()> 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<void()> 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<void()> pre_distributed_load;
+
     /**
      * This signal is triggered at the end of execution of the
      * parallel::distributed::Triangulation::load()
index 5fe3afb1c8347f6eeb5d799357f7395780272083..9da8894cd146668f67d14b7de558b3055cb004ea 100644 (file)
@@ -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)
         {

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.