]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix: Clear DataTransfer after all data has been unpacked.
authorMarc Fehling <mafehling.git@gmail.com>
Sat, 23 Oct 2021 02:40:13 +0000 (20:40 -0600)
committerTimo Heister <timo.heister@gmail.com>
Sat, 23 Oct 2021 13:42:30 +0000 (09:42 -0400)
source/distributed/tria_base.cc

index 32ed494e94bc74eeb5da3dc70947595d751dbe0d..7f6eecfc7254b8a71d8162093648f9045ba0d384 100644 (file)
@@ -809,17 +809,15 @@ namespace parallel
     // would destroy the saved data before the second SolutionTransfer can
     // get it. This created a bug that is documented in
     // tests/mpi/p4est_save_03 with more than one SolutionTransfer.
+
     if (cell_attached_data.n_attached_data_sets == 0 &&
         cell_attached_data.n_attached_deserialize == 0)
       {
         // everybody got their data, time for cleanup!
         cell_attached_data.pack_callbacks_fixed.clear();
         cell_attached_data.pack_callbacks_variable.clear();
-      }
+        data_transfer.clear();
 
-    if (this->cell_attached_data.n_attached_data_sets == 0 &&
-        this->cell_attached_data.n_attached_deserialize == 0)
-      {
         // reset all cell_status entries after coarsening/refinement
         for (auto &cell_rel : local_cell_relations)
           cell_rel.second =

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.