From: Wolfgang Bangerth Date: Sun, 26 Dec 2021 17:58:25 +0000 (-0700) Subject: Add an assertion to GridGenerator::flatten_triangulation(). X-Git-Tag: v9.4.0-rc1~706^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13132%2Fhead;p=dealii.git Add an assertion to GridGenerator::flatten_triangulation(). --- diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index b47c8a7a6e..2e2444664e 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -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);