]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warning in CoordinateRestriction 12205/head
authorDaniel Arndt <arndtd@ornl.gov>
Fri, 14 May 2021 19:44:42 +0000 (15:44 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Fri, 14 May 2021 19:45:35 +0000 (15:45 -0400)
source/base/function_restriction.cc

index a21e250983c3ef697a88243c7d7c821c10251eb6..e927f2298403ba14fde2d85e611a8c4ec3f9d8a2 100644 (file)
@@ -29,7 +29,7 @@ namespace internal
 
     Point<dim + 1> 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<dim>(
@@ -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<dim>(restricted_direction, d);

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.