]> 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 07:43:49 +0000 (09:43 +0200)
include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h

index ae60aa915480edc2b6d332a395daa1ff44707737..1b2c1a20e01f84aee1af926f95b3cd448d8a4798 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.