]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add an assertion for clearer errors. 3022/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 27 Aug 2016 03:03:07 +0000 (21:03 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 27 Aug 2016 03:03:07 +0000 (21:03 -0600)
Specifically, say that we can use GridGenerator::extract_boundary_mesh() for p::d::Triangulation.

source/grid/grid_generator.cc

index 35ef4c2142e0ec2abaf9891bf0f2f799139f34c9..b16b56b59bae9eaa07904788f4ddea5ad6fcaea3 100644 (file)
@@ -4432,6 +4432,11 @@ namespace GridGenerator
                              MeshType<dim-1,spacedim>           &surface_mesh,
                              const std::set<types::boundary_id> &boundary_ids)
   {
+    Assert ((dynamic_cast<const parallel::distributed::Triangulation<dim,spacedim>*>
+             (&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,

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.