]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update a Triangulation::straight_boundary test.
authorDavid Wells <wellsd2@rpi.edu>
Sat, 12 Aug 2017 22:23:03 +0000 (18:23 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Sun, 8 Oct 2017 23:22:36 +0000 (19:22 -0400)
This member value will soon be deprecated and Triangulation returns a
FlatManifold reference in the relevant function now.

tests/grid/move_constructor.cc

index e9d4b4e3c692171c50ffc11bfe46bb4432be62a7..ff9816d345ef503fb2f1dd0be830cf30527d9afc 100644 (file)
@@ -26,6 +26,8 @@
 template <int dim>
 void print_tria_info(const Triangulation<dim> &tria)
 {
+  const bool manifold_0_is_flat =
+    dynamic_cast<const FlatManifold<dim>*>(&tria.get_manifold(0)) != nullptr;
   deallog << (tria.n_active_cells() != 0) << ", "
           << (tria.n_active_hexs() != 0) << ", "
           << (tria.n_active_quads() != 0) << ", "
@@ -33,8 +35,7 @@ void print_tria_info(const Triangulation<dim> &tria)
           << (tria.n_levels() != 0) << ", "
           << (tria.n_vertices() != 0) << ", "
           << (tria.get_periodic_face_map().size() != 0) << ", "
-          << (&tria.get_manifold(0)
-              == (const Manifold<dim> *)&Triangulation<dim>::straight_boundary)
+          << manifold_0_is_flat
           << std::endl;
 }
 

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.