]> https://gitweb.dealii.org/ - dealii.git/commitdiff
source: favor auto & cell
authorMatthias Maier <tamiko@43-1.org>
Sun, 12 May 2019 04:18:13 +0000 (23:18 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 12 May 2019 15:35:20 +0000 (10:35 -0500)
source/grid/grid_tools.cc

index dfff05c3defa1d20beb46ead58fd5840d7ee22ee..f63ec3d8f0a55085cf4c1cf80856dee293ff26e6 100644 (file)
@@ -3827,7 +3827,7 @@ namespace GridTools
     tria.clear_user_data();
 
     unsigned next_index = 1;
-    for (auto cell : tria.active_cell_iterators())
+    for (auto &cell : tria.active_cell_iterators())
       {
         if (dim > 1)
           for (unsigned int l = 0; l < GeometryInfo<dim>::lines_per_cell; ++l)
@@ -3856,7 +3856,7 @@ namespace GridTools
                   cell->manifold_id());
             }
       }
-    for (auto cell : tria.active_cell_iterators())
+    for (auto &cell : tria.active_cell_iterators())
       {
         if (dim > 1)
           for (unsigned int l = 0; l < GeometryInfo<dim>::lines_per_cell; ++l)

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.