From: Wolfgang Bangerth Date: Sat, 27 Aug 2016 03:03:07 +0000 (-0600) Subject: Add an assertion for clearer errors. X-Git-Tag: v8.5.0-rc1~732^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2657126b3e0105cd9b488fb2e9858469b4bf2ab1;p=dealii.git Add an assertion for clearer errors. Specifically, say that we can use GridGenerator::extract_boundary_mesh() for p::d::Triangulation. --- 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,