From 2657126b3e0105cd9b488fb2e9858469b4bf2ab1 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Fri, 26 Aug 2016 21:03:07 -0600 Subject: [PATCH] Add an assertion for clearer errors. Specifically, say that we can use GridGenerator::extract_boundary_mesh() for p::d::Triangulation. --- source/grid/grid_generator.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index 35ef4c2142..b16b56b59b 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -4432,6 +4432,11 @@ namespace GridGenerator MeshType &surface_mesh, const std::set &boundary_ids) { + Assert ((dynamic_cast*> + (&volume_mesh.get_triangulation()) + == 0), + ExcNotImplemented()); + // This function works using the following assumption: // Triangulation::create_triangulation(...) will create cells that preserve // the order of cells passed in using the CellData argument; also, -- 2.39.5