From: Nicola Demo Date: Wed, 23 Mar 2016 12:07:25 +0000 (+0100) Subject: Remove auto as typename, added comment for dimensional problem X-Git-Tag: v8.5.0-rc1~1181^2~1 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f429c1c4e17fbe2490992a690f3273f9a12a7c1;p=dealii.git Remove auto as typename, added comment for dimensional problem --- 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);