]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace the last Boundary object in the tests
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 3 Feb 2018 18:19:45 +0000 (19:19 +0100)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 3 Feb 2018 18:27:30 +0000 (19:27 +0100)
tests/bits/distorted_cells_06.cc
tests/grid/grid_generator_01a.cc

index 3463d3f3b64f3e189fdcb37e1b70322036789141..f55a9061c7b98e16b734ad192c289743979a5fcd 100644 (file)
@@ -26,7 +26,7 @@
 #include <deal.II/grid/grid_reordering.h>
 #include <deal.II/grid/grid_tools.h>
 #include <deal.II/grid/grid_generator.h>
-#include <deal.II/grid/tria_boundary.h>
+#include <deal.II/grid/manifold.h>
 #include <deal.II/grid/grid_out.h>
 #include <deal.II/dofs/dof_handler.h>
 #include <deal.II/fe/fe_q.h>
@@ -35,7 +35,7 @@
 
 
 template <int dim>
-class MyBoundary : public Boundary<dim>
+class MyManifold : public Manifold<dim>
 {
   virtual Point<dim>
   get_new_point_on_line (const typename Triangulation<dim>::line_iterator &line) const
@@ -60,7 +60,7 @@ class MyBoundary : public Boundary<dim>
 template <int dim>
 void check ()
 {
-  MyBoundary<dim> my_boundary;
+  MyManifold<dim> my_manifold;
 
   // create two cubes
   Triangulation<dim> coarse_grid (Triangulation<dim>::none, true);
@@ -70,14 +70,14 @@ void check ()
   Point<dim> p1 (-1,0,0), p2(1,1,1);
   GridGenerator::subdivided_hyper_rectangle(coarse_grid, sub, p1, p2, true);
 
-  // set bottom middle edge to use MyBoundary
+  // set bottom middle edge to use MyManifold
   for (unsigned int f=0; f<GeometryInfo<dim>::faces_per_cell; ++f)
     for (unsigned int e=0; e<GeometryInfo<dim-1>::faces_per_cell; ++e)
       if (coarse_grid.begin_active()->face(f)->line(e)->center()[0] == 0)
         if (coarse_grid.begin_active()->face(f)->line(e)->center()[1] == 0.5)
           if (coarse_grid.begin_active()->face(f)->line(e)->center()[2] == 0)
-            coarse_grid.begin_active()->face(f)->line(e)->set_boundary_id (99);
-  coarse_grid.set_manifold (99, my_boundary);
+            coarse_grid.begin_active()->face(f)->line(e)->set_manifold_id (99);
+  coarse_grid.set_manifold (99, my_manifold);
 
   // now try to refine this one
   // cell. we should not get an exception, but keep it to make sure the
index bf1bd2d62b0d161eb633c12a20727dad2fa0351d..15f7f109bdcb7b64a04c863796906545dbf01603 100644 (file)
@@ -15,8 +15,8 @@
 
 
 
-// HalfHyperSphereBoundary got refining the edges of the flat surface edges
-// wrong in 3d.
+// Check that refinement of the flat surfaces of a GridGenerator::half_hyper_ball
+// works correctly using SphericalManifold as boundary description.
 
 #include "../tests.h"
 #include <deal.II/base/tensor.h>

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.