]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Bugfix: Do not use c++11 features in get_all_vertices_at_boundary
authorMatthias Maier <tamiko@43-1.org>
Tue, 31 Mar 2015 12:21:38 +0000 (14:21 +0200)
committerMatthias Maier <tamiko@43-1.org>
Tue, 31 Mar 2015 12:22:55 +0000 (14:22 +0200)
source/grid/grid_tools.cc

index a3c6a9304bf359dc73255e324d5bd00d2d9b6463..5401887b7a7ed63415fb07e6570066c6e4159385 100644 (file)
@@ -769,7 +769,7 @@ namespace GridTools
   }
 
   template <int dim, int spacedim>
-  std::map<unsigned int,Point<spacedim> >
+  std::map<unsigned int, Point<spacedim> >
   get_all_vertices_at_boundary (const Triangulation<dim, spacedim> &tria)
   {
     std::map<unsigned int, Point<spacedim> > vertex_map;
@@ -780,13 +780,14 @@ namespace GridTools
       {
         for (unsigned int i=0; i<GeometryInfo<dim>::faces_per_cell; ++i)
           {
-            const auto face = cell->face(i);
+            const typename Triangulation<dim, spacedim>::face_iterator &face
+              = cell->face(i);
             if (face->at_boundary())
               {
                 for (unsigned j = 0; j < GeometryInfo<dim>::vertices_per_face; ++j)
                   {
-                    const auto vertex = face->vertex(j);
-                    const auto vertex_index = face->vertex_index(j);
+                    const Point<spacedim> &vertex = face->vertex(j);
+                    const unsigned int vertex_index = face->vertex_index(j);
                     vertex_map[vertex_index] = vertex;
                   }
               }

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.