From ab0ce98232960b0ada8880ed7810f079add70220 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Sat, 11 May 2019 17:32:00 -0500 Subject: [PATCH] change value to reference --- examples/step-6/step-6.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/step-6/step-6.cc b/examples/step-6/step-6.cc index 7f7f9ee82c..f7086ecde5 100644 --- a/examples/step-6/step-6.cc +++ b/examples/step-6/step-6.cc @@ -284,7 +284,7 @@ void Step6::assemble_system() std::vector 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; -- 2.39.5