]> https://gitweb.dealii.org/ - dealii.git/commitdiff
fix
authorTimo Heister <timo.heister@gmail.com>
Sun, 17 Nov 2024 16:53:26 +0000 (11:53 -0500)
committerTimo Heister <timo.heister@gmail.com>
Sun, 17 Nov 2024 16:53:26 +0000 (11:53 -0500)
include/deal.II/matrix_free/matrix_free.h
source/multigrid/mg_transfer_prebuilt.inst.in

index ff35f4a35ef253d64356b4ae153a7a929b24873e..a68bc1be24b73c1e8a8927a568170aa931047bd8 100644 (file)
@@ -3877,12 +3877,11 @@ namespace internal
 
           if (part.n_ghost_indices() > 0)
             {
-              part.reset_ghost_values(ArrayView<Number>(
-                const_cast<LinearAlgebra::distributed::Vector<Number> &>(vec)
-                    .begin() +
-                  part.locally_owned_size(),
-                matrix_free.get_dof_info(mf_component)
-                  .vector_partitioner->n_ghost_indices()));
+              part.reset_ghost_values(
+                ArrayView<Number>(const_cast<VectorType &>(vec).begin() +
+                                    part.locally_owned_size(),
+                                  matrix_free.get_dof_info(mf_component)
+                                    .vector_partitioner->n_ghost_indices()));
             }
 
 #  endif
index 330426dff3304905a8fb22a046797da892e400fc..0a57094451e557ef027cd8bed7af9beda3ebb678 100644 (file)
@@ -19,6 +19,12 @@ for (V1 : VECTORS_WITHOUT_LAVEC)
     template class MGTransferPrebuilt<V1>;
   }
 
+for (S1 : REAL_SCALARS)
+  {
+    template class MGTransferPrebuilt<
+      LinearAlgebra::distributed::Vector<S1, ::dealii::MemorySpace::Host>>;
+  }
+
 for (deal_II_dimension : DIMENSIONS; V1 : VECTORS_WITHOUT_LAVEC)
   {
     template void MGTransferPrebuilt<V1>::build<deal_II_dimension>(

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.