]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Tensor product kernels: Use the right type in some templated functions 15207/head
authorMartin Kronbichler <martin.kronbichler@uni-a.de>
Sat, 13 May 2023 07:50:19 +0000 (09:50 +0200)
committerMartin Kronbichler <martin.kronbichler@uni-a.de>
Sat, 13 May 2023 07:50:19 +0000 (09:50 +0200)
include/deal.II/matrix_free/tensor_product_kernels.h

index e02030183a83f5ab385da2235ffb72578f5bfacb..989cbf1ee3c57eb8eb0d4b2f9e65c5d61bb5f143 100644 (file)
@@ -466,7 +466,7 @@ namespace internal
     AssertIndexRange(face_direction, dim);
     constexpr int in_stride  = Utilities::pow(n_rows, face_direction);
     constexpr int out_stride = Utilities::pow(n_rows, dim - 1);
-    const Number *DEAL_II_RESTRICT shape_values = this->shape_values;
+    const Number2 *DEAL_II_RESTRICT shape_values = this->shape_values;
 
     for (int i2 = 0; i2 < n_blocks2; ++i2)
       {
@@ -2799,7 +2799,7 @@ namespace internal
                                                           n_rows)));
     constexpr int out_stride = n_blocks1 * n_blocks2;
 
-    const Number *DEAL_II_RESTRICT shape_values = this->shape_values;
+    const Number2 *DEAL_II_RESTRICT shape_values = this->shape_values;
 
     for (int i2 = 0; i2 < n_blocks2; ++i2)
       {

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.