From 7f429c1c4e17fbe2490992a690f3273f9a12a7c1 Mon Sep 17 00:00:00 2001 From: Nicola Demo Date: Wed, 23 Mar 2016 13:07:25 +0100 Subject: [PATCH] Remove auto as typename, added comment for dimensional problem --- include/deal.II/grid/grid_generator.h | 6 +++--- source/grid/grid_generator.cc | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/deal.II/grid/grid_generator.h b/include/deal.II/grid/grid_generator.h index 93c4075f93..ddc2f0deb1 100644 --- a/include/deal.II/grid/grid_generator.h +++ b/include/deal.II/grid/grid_generator.h @@ -575,9 +575,9 @@ namespace GridGenerator * the interval [(left+right)/2,right] for each coordinate. If the * @p colorize flag is set, the @p boundary_ids of the surfaces are * assigned, such that the left boundary is 0, and the others are set with - * growing number accordingly to the counterclockwise. This function will - * create the classical L-shape in 2d and it will look like the following - * in 3d: + * growing number accordingly to the counterclockwise. Colorize option works + * only with 2-dimensional problem. This function will create the classical + * L-shape in 2d and it will look like the following in 3d: * * @image html hyper_l.png * diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index f74d6f98b3..76cf1562d7 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -350,7 +350,6 @@ namespace GridGenerator p1(i) = std::min(p_1(i), p_2(i)); p2(i) = std::max(p_1(i), p_2(i)); } - // std::vector > vertices (GeometryInfo::vertices_per_cell); switch (dim) @@ -2114,7 +2113,7 @@ namespace GridGenerator if (colorize) { - auto cell = tria.begin(); + typename Triangulation<2>::cell_iterator cell = tria.begin(); cell->face(0)->set_boundary_id(0); cell->face(2)->set_boundary_id(1); -- 2.39.5