]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid compiler warning 15228/head
authorMartin Kronbichler <martin.kronbichler@uni-a.de>
Tue, 16 May 2023 12:02:04 +0000 (14:02 +0200)
committerMartin Kronbichler <martin.kronbichler@uni-a.de>
Tue, 16 May 2023 12:02:04 +0000 (14:02 +0200)
include/deal.II/matrix_free/tensor_product_kernels.h

index 00ad786ff2f76bcbffdcc955c28ce6985058fc4e..8f12389759733fdf062c4fc065308b642c5e494c 100644 (file)
@@ -3509,7 +3509,7 @@ namespace internal
             shape_values_x[j] = shapes[j][0][0];
             shape_derivs_x[j] = shapes[j][1][0];
           }
-        for (unsigned int i1 = 0; i1 < (dim > 1 ? length : 1); ++i1)
+        for (int i1 = 0; i1 < (dim > 1 ? length : 1); ++i1)
           {
             const Number2 test_value_y =
               dim > 1 ? (test_grads_value[2] * shapes[i1][0][1] +
@@ -3520,7 +3520,7 @@ namespace internal
                         test_grads_value[0];
 
             Number2 *values_ptr = values.data() + i + i1 * length;
-            for (unsigned int i0 = 0; i0 < length; ++i0)
+            for (int i0 = 0; i0 < length; ++i0)
               {
                 values_ptr[i0] += shape_values_x[i0] * test_value_y;
                 values_ptr[i0] += shape_derivs_x[i0] * test_grad_xy;

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.