Skip to content

Commit

Permalink
MGTwoLevelTransfer: Make sure ot clean old vector content in prolonga…
Browse files Browse the repository at this point in the history
…te_add
  • Loading branch information
kronbichler committed May 31, 2023
1 parent 2896a7e commit bd91cb6
Show file tree
Hide file tree
Showing 3 changed files with 213 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2630,7 +2630,7 @@ MGTwoLevelTransferBase<LinearAlgebra::distributed::Vector<Number>>::

this->update_ghost_values(*vec_coarse_ptr);

if (fine_element_is_continuous && (use_dst_inplace == false))
if (use_dst_inplace == false)
*vec_fine_ptr = Number(0.);

this->prolongate_and_add_internal(*vec_fine_ptr, *vec_coarse_ptr);
Expand Down
4 changes: 4 additions & 0 deletions tests/multigrid-global-coarsening/mg_transfer_a_01.cc
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ do_test(const FiniteElement<dim> &fe_fine, const FiniteElement<dim> &fe_coarse)
constraint_fine,
constraint_coarse);

deallog << "test first time" << std::endl;
test_transfer_operator(transfer, dof_handler_fine, dof_handler_coarse);

deallog << "test second time" << std::endl;
test_transfer_operator(transfer, dof_handler_fine, dof_handler_coarse);
}

Expand Down

0 comments on commit bd91cb6

Please sign in to comment.