]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use make_array_view() for scalar inverse coefficients
authorBuğrahan Temür <bugrahan.temuer@tum.de>
Wed, 15 Mar 2023 16:34:33 +0000 (17:34 +0100)
committerBuğrahan Temür <bugrahan.temuer@tum.de>
Wed, 15 Mar 2023 16:34:33 +0000 (17:34 +0100)
include/deal.II/matrix_free/operators.h

index 320ee734b8e618310fc7b213c6e328a849c55beb..d7f618cf86fcfd35d61485ccf6190a577a701d4f 100644 (file)
@@ -1116,22 +1116,20 @@ namespace MatrixFreeOperators
           VectorizedArrayType *                     out_array) const
   {
     if (fe_degree > -1)
-      internal::CellwiseInverseMassMatrixImplFlexible<dim,
-                                                      VectorizedArrayType>::
-        template run<fe_degree>(
-          n_actual_components,
-          fe_eval,
-          ArrayView<const VectorizedArrayType>(inverse_coefficients.data(),
-                                               inverse_coefficients.size()),
-          false,
-          in_array,
-          out_array);
+      internal::CellwiseInverseMassMatrixImplFlexible<
+        dim,
+        VectorizedArrayType>::template run<fe_degree>(n_actual_components,
+                                                      fe_eval,
+                                                      make_array_view(
+                                                        inverse_coefficients),
+                                                      false,
+                                                      in_array,
+                                                      out_array);
     else
       internal::CellwiseInverseMassFactory<dim, VectorizedArrayType>::apply(
         n_actual_components,
         fe_eval,
-        ArrayView<const VectorizedArrayType>(inverse_coefficients.data(),
-                                             inverse_coefficients.size()),
+        make_array_view(inverse_coefficients),
         false,
         in_array,
         out_array);

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.