From 3bbbe4f350f684db75ff584972ee0242e45eaecb Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sun, 17 Nov 2024 11:53:26 -0500 Subject: [PATCH] fix --- include/deal.II/matrix_free/matrix_free.h | 11 +++++------ source/multigrid/mg_transfer_prebuilt.inst.in | 6 ++++++ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/include/deal.II/matrix_free/matrix_free.h b/include/deal.II/matrix_free/matrix_free.h index ff35f4a35e..a68bc1be24 100644 --- a/include/deal.II/matrix_free/matrix_free.h +++ b/include/deal.II/matrix_free/matrix_free.h @@ -3877,12 +3877,11 @@ namespace internal if (part.n_ghost_indices() > 0) { - part.reset_ghost_values(ArrayView( - const_cast &>(vec) - .begin() + - part.locally_owned_size(), - matrix_free.get_dof_info(mf_component) - .vector_partitioner->n_ghost_indices())); + part.reset_ghost_values( + ArrayView(const_cast(vec).begin() + + part.locally_owned_size(), + matrix_free.get_dof_info(mf_component) + .vector_partitioner->n_ghost_indices())); } # endif diff --git a/source/multigrid/mg_transfer_prebuilt.inst.in b/source/multigrid/mg_transfer_prebuilt.inst.in index 330426dff3..0a57094451 100644 --- a/source/multigrid/mg_transfer_prebuilt.inst.in +++ b/source/multigrid/mg_transfer_prebuilt.inst.in @@ -19,6 +19,12 @@ for (V1 : VECTORS_WITHOUT_LAVEC) template class MGTransferPrebuilt; } +for (S1 : REAL_SCALARS) + { + template class MGTransferPrebuilt< + LinearAlgebra::distributed::Vector>; + } + for (deal_II_dimension : DIMENSIONS; V1 : VECTORS_WITHOUT_LAVEC) { template void MGTransferPrebuilt::build( -- 2.39.5