From 462a97504db86da6a648dd0dd027c799a4366142 Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Sat, 3 Feb 2018 19:19:45 +0100 Subject: [PATCH] Replace the last Boundary object in the tests --- tests/bits/distorted_cells_06.cc | 12 ++++++------ tests/grid/grid_generator_01a.cc | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/bits/distorted_cells_06.cc b/tests/bits/distorted_cells_06.cc index 3463d3f3b6..f55a9061c7 100644 --- a/tests/bits/distorted_cells_06.cc +++ b/tests/bits/distorted_cells_06.cc @@ -26,7 +26,7 @@ #include #include #include -#include +#include #include #include #include @@ -35,7 +35,7 @@ template -class MyBoundary : public Boundary +class MyManifold : public Manifold { virtual Point get_new_point_on_line (const typename Triangulation::line_iterator &line) const @@ -60,7 +60,7 @@ class MyBoundary : public Boundary template void check () { - MyBoundary my_boundary; + MyManifold my_manifold; // create two cubes Triangulation coarse_grid (Triangulation::none, true); @@ -70,14 +70,14 @@ void check () Point 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::faces_per_cell; ++f) for (unsigned int e=0; e::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 diff --git a/tests/grid/grid_generator_01a.cc b/tests/grid/grid_generator_01a.cc index bf1bd2d62b..15f7f109bd 100644 --- a/tests/grid/grid_generator_01a.cc +++ b/tests/grid/grid_generator_01a.cc @@ -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 -- 2.39.5