From: Timo Heister Date: Sun, 17 Nov 2024 16:53:26 +0000 (-0500) Subject: fix X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3bbbe4f350f684db75ff584972ee0242e45eaecb;p=dealii.git fix --- 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(