From 54fddd665d3e59db2977f255626d2a32873fcdf9 Mon Sep 17 00:00:00 2001 From: Peter Munch Date: Tue, 22 Feb 2022 14:46:26 +0100 Subject: [PATCH] Fix p:d:T::copy_triangulation() --- doc/news/changes/minor/20220222Dravins | 7 +++++++ source/distributed/tria.cc | 2 -- 2 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 doc/news/changes/minor/20220222Dravins diff --git a/doc/news/changes/minor/20220222Dravins b/doc/news/changes/minor/20220222Dravins new file mode 100644 index 0000000000..2a40062e50 --- /dev/null +++ b/doc/news/changes/minor/20220222Dravins @@ -0,0 +1,7 @@ +Fixed: The function parallel::distributed::copy_triangulation() used to +copy the reference to the attached SolutionTransfer instance, which resulted +in calling the same SolutionTransfer instance multiple times if the +triangulation and the new triangulation are refined/coarsened independently. +This has been fixed. +
+(Ivo Dravins, Peter Munch, 2022/02/22) diff --git a/source/distributed/tria.cc b/source/distributed/tria.cc index effa4a068b..051ea1540a 100644 --- a/source/distributed/tria.cc +++ b/source/distributed/tria.cc @@ -3953,8 +3953,6 @@ namespace parallel other_distributed->coarse_cell_to_p4est_tree_permutation; p4est_tree_to_coarse_cell_permutation = other_distributed->p4est_tree_to_coarse_cell_permutation; - this->cell_attached_data = other_distributed->cell_attached_data; - this->data_transfer = other_distributed->data_transfer; // create deep copy of connectivity graph typename dealii::internal::p4est::types::connectivity -- 2.39.5