From 6ffad0d7089ad7ea88b903b293bcf30a7214bf78 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Tue, 16 May 2023 14:02:04 +0200 Subject: [PATCH] Avoid compiler warning --- include/deal.II/matrix_free/tensor_product_kernels.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/deal.II/matrix_free/tensor_product_kernels.h b/include/deal.II/matrix_free/tensor_product_kernels.h index 00ad786ff2..8f12389759 100644 --- a/include/deal.II/matrix_free/tensor_product_kernels.h +++ b/include/deal.II/matrix_free/tensor_product_kernels.h @@ -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; -- 2.39.5