]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix in MGTwoLevelTransfer::interpolate: forgot to copy vector
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 29 May 2021 07:43:49 +0000 (09:43 +0200)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Sat, 29 May 2021 09:37:40 +0000 (11:37 +0200)
include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h

index d38b2eb6e35a602914ef148b18807a5da3cbb894..33c5ab9c6b8489fbd31c3a838d06e4b340de0709 100644 (file)
@@ -2535,6 +2535,10 @@ MGTwoLevelTransfer<dim, LinearAlgebra::distributed::Vector<Number>>::
 
   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();
 

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.