From 62dc67af54aab5a11d44cf947503b12cc91af902 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Fri, 14 May 2021 15:44:42 -0400 Subject: [PATCH] Fix warning in CoordinateRestriction --- source/base/function_restriction.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/base/function_restriction.cc b/source/base/function_restriction.cc index a21e250983..e927f22984 100644 --- a/source/base/function_restriction.cc +++ b/source/base/function_restriction.cc @@ -29,7 +29,7 @@ namespace internal Point output; output(component_in_dim_plus_1) = coordinate_value; - for (unsigned int d = 0; d < dim; ++d) + for (int d = 0; d < dim; ++d) { const unsigned int component_to_write_to = dealii::internal::coordinate_to_one_dim_higher( @@ -91,7 +91,7 @@ namespace Functions // the derivatives with respect to this direction and copy the other // values. Tensor<1, dim> grad; - for (unsigned int d = 0; d < dim; ++d) + for (int d = 0; d < dim; ++d) { const unsigned int index_to_write_from = internal::coordinate_to_one_dim_higher(restricted_direction, d); -- 2.39.5