]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix MGTwoLevelTransfer::restrict_and_add() 13312/head
authorPeter Munch <peterrmuench@gmail.com>
Mon, 31 Jan 2022 16:54:22 +0000 (17:54 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Mon, 31 Jan 2022 16:55:13 +0000 (17:55 +0100)
include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h

index 5a7f8b283bb8cd856d6666bee806da45fb28c8ec..576bced433e3ca8e50b7d4d269c412e4b112e211 100644 (file)
@@ -2987,8 +2987,10 @@ MGTwoLevelTransfer<dim, LinearAlgebra::distributed::Vector<Number>>::
     }
 
   // clean up related to update_ghost_values()
-  if (use_src_inplace == false)
-    vec_fine_ptr->set_ghost_state(false); // internal vector
+  if (fine_element_is_continuous == false && use_src_inplace == false)
+    vec_fine_ptr->zero_out_ghost_values(); // internal vector (DG)
+  else if (fine_element_is_continuous && use_src_inplace == false)
+    vec_fine_ptr->set_ghost_state(false); // internal vector (CG)
   else if (fine_element_is_continuous)
     vec_fine_ptr->zero_out_ghost_values(); // external vector
 

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.