From: Marc Fehling Date: Sat, 23 Oct 2021 02:40:13 +0000 (-0600) Subject: Bugfix: Clear DataTransfer after all data has been unpacked. X-Git-Tag: v9.4.0-rc1~889^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64eec36f3fc50575564249a5df3aaa2448872ccb;p=dealii.git Bugfix: Clear DataTransfer after all data has been unpacked. --- diff --git a/source/distributed/tria_base.cc b/source/distributed/tria_base.cc index 32ed494e94..7f6eecfc72 100644 --- a/source/distributed/tria_base.cc +++ b/source/distributed/tria_base.cc @@ -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 =