]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix warnings 14626/head
authorDaniel Arndt <arndtd@ornl.gov>
Mon, 2 Jan 2023 11:04:32 +0000 (12:04 +0100)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 2 Jan 2023 11:04:32 +0000 (12:04 +0100)
tests/simplex/cell_bounding_boxes_2d.cc
tests/simplex/cell_bounding_boxes_3d.cc
tests/simplex/step-68.cc

index 182d5dd47dd8294838dcbe17c1cc94ab06fbea81..2f6d28d1104f31426c891a8802b7dc9fab8f037c 100644 (file)
@@ -40,7 +40,7 @@ template <int dim>
 void
 compute_bounding_boxes(Triangulation<dim> &tria)
 {
-  for (const auto cell : tria.active_cell_iterators())
+  for (const auto &cell : tria.active_cell_iterators())
     {
       const auto cell_bb = cell->bounding_box();
       deallog << "Center : " << cell_bb.center()
index 227fd9687e160bd32da4e669259e2654ebed958a..1bd353238e01ef31fca3c33736f7c4303758e1fa 100644 (file)
@@ -40,7 +40,7 @@ template <int dim>
 void
 compute_bounding_boxes(Triangulation<dim> &tria)
 {
-  for (const auto cell : tria.active_cell_iterators())
+  for (const auto &cell : tria.active_cell_iterators())
     {
       const auto cell_bb = cell->bounding_box();
       deallog << "Center : " << cell_bb.center()
index 32575a580412f38560badbfc91ca4192a424d788..c52cf9161c81f5715889fdec017efc0573036228 100644 (file)
@@ -253,7 +253,7 @@ namespace Step68
 
     std::vector<BoundingBox<dim>> all_boxes;
     all_boxes.reserve(background_triangulation.n_locally_owned_active_cells());
-    for (const auto cell : background_triangulation.active_cell_iterators())
+    for (const auto &cell : background_triangulation.active_cell_iterators())
       if (cell->is_locally_owned())
         all_boxes.emplace_back(cell->bounding_box());
     const auto tree        = pack_rtree(all_boxes);

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.