]> https://gitweb.dealii.org/ - dealii.git/commitdiff
change value to reference
authorMatthias Maier <tamiko@43-1.org>
Sat, 11 May 2019 22:32:00 +0000 (17:32 -0500)
committerMatthias Maier <tamiko@43-1.org>
Sun, 12 May 2019 15:27:21 +0000 (10:27 -0500)
examples/step-6/step-6.cc

index 7f7f9ee82c98e78e671e3cf3fbbab9051fa9382b..f7086ecde517cc5a5c7ca2eb8d92c5372e3012f7 100644 (file)
@@ -284,7 +284,7 @@ void Step6<dim>::assemble_system()
 
   std::vector<types::global_dof_index> local_dof_indices(dofs_per_cell);
 
-  for (const auto cell : dof_handler.active_cell_iterators())
+  for (const auto &cell : dof_handler.active_cell_iterators())
     {
       cell_matrix = 0;
       cell_rhs    = 0;

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.