From 663a8e552d45df53a0baf1c0b90da40c36d80e04 Mon Sep 17 00:00:00 2001 From: Matthias Maier Date: Tue, 31 Mar 2015 14:21:38 +0200 Subject: [PATCH] Bugfix: Do not use c++11 features in get_all_vertices_at_boundary --- source/grid/grid_tools.cc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/source/grid/grid_tools.cc b/source/grid/grid_tools.cc index a3c6a9304b..5401887b7a 100644 --- a/source/grid/grid_tools.cc +++ b/source/grid/grid_tools.cc @@ -769,7 +769,7 @@ namespace GridTools } template - std::map > + std::map > get_all_vertices_at_boundary (const Triangulation &tria) { std::map > vertex_map; @@ -780,13 +780,14 @@ namespace GridTools { for (unsigned int i=0; i::faces_per_cell; ++i) { - const auto face = cell->face(i); + const typename Triangulation::face_iterator &face + = cell->face(i); if (face->at_boundary()) { for (unsigned j = 0; j < GeometryInfo::vertices_per_face; ++j) { - const auto vertex = face->vertex(j); - const auto vertex_index = face->vertex_index(j); + const Point &vertex = face->vertex(j); + const unsigned int vertex_index = face->vertex_index(j); vertex_map[vertex_index] = vertex; } } -- 2.39.5