]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix types 12947/head
authorPeter Munch <peterrmuench@gmail.com>
Mon, 15 Nov 2021 15:03:08 +0000 (16:03 +0100)
committerPeter Munch <peterrmuench@gmail.com>
Tue, 16 Nov 2021 06:39:58 +0000 (07:39 +0100)
source/distributed/tria.cc

index 5d68dd2e067a8d28201092be708012b285829cf7..c66a0fbfdf9fc82692682ec56ae61d2a60f83088 100644 (file)
@@ -920,7 +920,7 @@ namespace
     const typename internal::p4est::types<2>::quadrant_coord
       quad_length_on_level)
   {
-    constexpr int dim = 2;
+    constexpr unsigned int dim = 2;
 
     // p4est for some reason always needs double vxyz[3] as last argument to
     // quadrant_coord_to_vertex
@@ -929,7 +929,7 @@ namespace
     // A lambda to avoid code duplication.
     const auto copy_vertex = [&](unsigned int vertex_index) -> void {
       // copy into local struct
-      for (size_t d = 0; d < dim; ++d)
+      for (unsigned int d = 0; d < dim; ++d)
         {
           cell_vertices[vertex_index](d) = corner_point[d];
           // reset
@@ -1004,14 +1004,14 @@ namespace
     const typename internal::p4est::types<3>::quadrant_coord
       quad_length_on_level)
   {
-    constexpr int dim = 3;
+    constexpr unsigned int dim = 3;
 
     double corner_point[dim] = {0};
 
     // A lambda to avoid code duplication.
     auto copy_vertex = [&](unsigned int vertex_index) -> void {
       // copy into local struct
-      for (size_t d = 0; d < dim; ++d)
+      for (unsigned int d = 0; d < dim; ++d)
         {
           cell_vertices[vertex_index](d) = corner_point[d];
           // reset

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.