From: Timo Heister Date: Mon, 21 Mar 2016 12:50:41 +0000 (+0100) Subject: address comments X-Git-Tag: v8.5.0-rc1~1185^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b3378b50ea4caa364cb118aa208e366e4c0b22a;p=dealii.git address comments --- diff --git a/include/deal.II/grid/grid_generator.h b/include/deal.II/grid/grid_generator.h index 5b90ff144c..93944f00ac 100644 --- a/include/deal.II/grid/grid_generator.h +++ b/include/deal.II/grid/grid_generator.h @@ -762,8 +762,7 @@ namespace GridGenerator /** * Produce the volume or surface mesh of a torus. The axis of the torus is - * the $y$-axis while the plane of the torus is the $x$-$z$ plane. The - * function is implemented + * the $y$-axis while the plane of the torus is the $x$-$z$ plane. * * If @p dim is 3, the mesh will be the volume of the torus. By default, * the boundary faces will have manifold id 0 and you should attach a diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index 1236e0d1ea..7a03d98272 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -716,6 +716,8 @@ namespace GridGenerator // GridReordering<> doc GridReordering::reorder_cells (cells); tria.create_triangulation_compatibility (vertices, cells, SubCellData()); + + tria.set_all_manifold_ids(0); } template<> diff --git a/tests/grid/torus_01.cc b/tests/grid/torus_01.cc index 721f592fef..af1127fbe1 100644 --- a/tests/grid/torus_01.cc +++ b/tests/grid/torus_01.cc @@ -44,16 +44,9 @@ void test<3,3> () triangulation.set_manifold (0, desc_torus); triangulation.set_manifold (1, desc_sphere); - triangulation.refine_global(0); triangulation.begin_active()->set_refine_flag(); triangulation.execute_coarsening_and_refinement (); - /* - std::ofstream out ("grid-1.vtk"); - GridOut grid_out; - grid_out.write_vtk (triangulation, out); - */ - unsigned int c = 0; for (Triangulation::active_vertex_iterator v = triangulation.begin_active_vertex(); v != triangulation.end_vertex();