From b83faecea6da6d5469cc4dfa9c20d5345a435ee4 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 29 Oct 2020 12:50:21 +0100 Subject: [PATCH] Do not capture by reference for iota_view --- source/grid/grid_out.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source/grid/grid_out.cc b/source/grid/grid_out.cc index 2a6aa1cc8e..9c8755647b 100644 --- a/source/grid/grid_out.cc +++ b/source/grid/grid_out.cc @@ -889,7 +889,7 @@ GridOut::write_dx(const Triangulation &tria, for (const auto &cell : tria.active_cell_iterators()) { - for (const auto f : cell->face_indices()) + for (const unsigned int f : cell->face_indices()) { typename Triangulation::face_iterator face = cell->face(f); @@ -919,7 +919,7 @@ GridOut::write_dx(const Triangulation &tria, for (const auto &cell : tria.active_cell_iterators()) { // Little trick to get -1 for the interior - for (auto f : GeometryInfo::face_indices()) + for (unsigned int f : GeometryInfo::face_indices()) { out << ' ' << static_cast::type>( @@ -4438,7 +4438,7 @@ namespace internal case 2: { for (const auto &cell : tria.active_cell_iterators()) - for (const auto &line_no : cell->line_indices()) + for (const unsigned int line_no : cell->line_indices()) { typename dealii::Triangulation::line_iterator line = cell->line(line_no); @@ -4608,7 +4608,7 @@ namespace internal for (const auto &cell : tria.active_cell_iterators()) - for (const auto &line_no : cell->line_indices()) + for (const unsigned int line_no : cell->line_indices()) { typename dealii::Triangulation::line_iterator line = cell->line(line_no); @@ -4797,7 +4797,7 @@ namespace internal // doing this multiply std::set treated_vertices; for (const auto &cell : tria.active_cell_iterators()) - for (const auto &vertex_no : cell->vertex_indices()) + for (const unsigned int vertex_no : cell->vertex_indices()) if (treated_vertices.find(cell->vertex_index(vertex_no)) == treated_vertices.end()) { -- 2.39.5