]> https://gitweb.dealii.org/ - dealii.git/commitdiff
address comments 2385/head
authorTimo Heister <timo.heister@gmail.com>
Mon, 21 Mar 2016 12:50:41 +0000 (13:50 +0100)
committerTimo Heister <timo.heister@gmail.com>
Mon, 21 Mar 2016 12:50:41 +0000 (13:50 +0100)
include/deal.II/grid/grid_generator.h
source/grid/grid_generator.cc
tests/grid/torus_01.cc

index 5b90ff144c04508afdd719f8a8b03f58a1425f6d..93944f00ac8881e627ac8158b39ef1eb8e8155f2 100644 (file)
@@ -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
index 1236e0d1eaecfd50c774d5d0521c1baa80cde38e..7a03d982729a73f2e263aa1446ee8f13d102a29a 100644 (file)
@@ -716,6 +716,8 @@ namespace GridGenerator
     // GridReordering<> doc
     GridReordering<dim,spacedim>::reorder_cells (cells);
     tria.create_triangulation_compatibility (vertices, cells, SubCellData());
+
+    tria.set_all_manifold_ids(0);
   }
 
   template<>
index 721f592fef68c51bd62eee811f6e7fe09583df7a..af1127fbe1cc507f676e19077c954c72d86cc983 100644 (file)
@@ -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<dim, spacedim>::active_vertex_iterator v = triangulation.begin_active_vertex();
        v != triangulation.end_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.