]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix compile warning 17178/head
authorMartin Kronbichler <martin.kronbichler@rub.de>
Wed, 26 Jun 2024 20:31:17 +0000 (22:31 +0200)
committerMartin Kronbichler <martin.kronbichler@rub.de>
Wed, 26 Jun 2024 20:31:17 +0000 (22:31 +0200)
include/deal.II/matrix_free/tensor_product_point_kernels.h

index 9b7bb7a2a9eae3b479e469dace4aeef45ad66596..cff17b6216096dfbfe2ebee9109cc3b943eb5abd 100644 (file)
@@ -1388,13 +1388,13 @@ namespace internal
         std::array<Number, array_size> shape_values_x;
         for (unsigned int i1 = 0; i1 < array_size; ++i1)
           shape_values_x[i1] = shapes[i1][0][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_value * shapes[i1][0][1] : test_value;
 
             Number2 *values_ptr = values + i + i1 * length;
-            for (unsigned int i0 = 0; i0 < length; ++i0)
+            for (int i0 = 0; i0 < length; ++i0)
               {
                 if (add)
                   values_ptr[i0] += shape_values_x[i0] * test_value_y;

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.