From: Daniel Arndt Date: Fri, 14 May 2021 19:44:42 +0000 (-0400) Subject: Fix warning in CoordinateRestriction X-Git-Tag: v9.3.0-rc1~73^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62dc67af54aab5a11d44cf947503b12cc91af902;p=dealii.git Fix warning in CoordinateRestriction --- 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);