From 3b3378b50ea4caa364cb118aa208e366e4c0b22a Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Mon, 21 Mar 2016 13:50:41 +0100 Subject: [PATCH] address comments --- include/deal.II/grid/grid_generator.h | 3 +-- source/grid/grid_generator.cc | 2 ++ tests/grid/torus_01.cc | 7 ------- 3 files changed, 3 insertions(+), 9 deletions(-) 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(); -- 2.39.5