From: Martin Kronbichler Date: Sat, 29 May 2021 07:43:49 +0000 (+0200) Subject: Bugfix in MGTwoLevelTransfer::interpolate: forgot to copy vector X-Git-Tag: v9.3.0~8^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a460920e70f28b27429c142fd948d49c41777f72;p=dealii.git Bugfix in MGTwoLevelTransfer::interpolate: forgot to copy vector --- diff --git a/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h b/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h index d38b2eb6e3..33c5ab9c6b 100644 --- a/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h +++ b/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h @@ -2535,6 +2535,10 @@ MGTwoLevelTransfer>:: const bool use_src_inplace = this->vec_fine.size() == 0; const auto vec_fine_ptr = use_src_inplace ? &src : &this->vec_fine; + + if (use_src_inplace == false) + this->vec_fine.copy_locally_owned_data_from(src); + if (fine_element_is_continuous || use_src_inplace == false) vec_fine_ptr->update_ghost_values();