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.4.0-rc1~1316^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1d03dac324629ce666a16852e8e322921501cd0c;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 ae60aa9154..1b2c1a20e0 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();