]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add an assertion to GridGenerator::flatten_triangulation(). 13132/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sun, 26 Dec 2021 17:58:25 +0000 (10:58 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sun, 26 Dec 2021 17:58:25 +0000 (10:58 -0700)
source/grid/grid_generator.cc

index b47c8a7a6ec886348b919d364a7008fe8f76bb1c..2e2444664ed111fcc8bc03d12897ce907a4cb19f 100644 (file)
@@ -7500,6 +7500,9 @@ namespace GridGenerator
            ExcMessage(
              "This function cannot be used on "
              "parallel::distributed::Triangulation objects as inputs."));
+    Assert(in_tria.has_hanging_nodes() == false,
+           ExcMessage("This function does not work for meshes that have "
+                      "hanging nodes."));
 
 
     const unsigned int spacedim = std::min(spacedim1, spacedim2);

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.