]> https://gitweb.dealii.org/ - dealii.git/commitdiff
const cell
authorTimo Heister <timo.heister@gmail.com>
Wed, 7 Aug 2019 20:31:31 +0000 (14:31 -0600)
committerTimo Heister <timo.heister@gmail.com>
Wed, 7 Aug 2019 20:31:31 +0000 (14:31 -0600)
examples/step-49/step-49.cc

index abf6625b9ee80ae01b034637da69931d58e08083..0787c9fd218efd1b89c61f91fc5e7a0ca8b362e0 100644 (file)
@@ -72,7 +72,7 @@ void print_mesh_info(const Triangulation<dim> &triangulation,
   // we then increment it):
   {
     std::map<types::boundary_id, unsigned int> boundary_count;
-    for (auto &cell : triangulation.active_cell_iterators())
+    for (const auto &cell : triangulation.active_cell_iterators())
       {
         for (unsigned int face = 0; face < GeometryInfo<dim>::faces_per_cell;
              ++face)

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.