From: David Wells Date: Fri, 16 Feb 2024 14:32:53 +0000 (-0500) Subject: Assert that we only extrude quadrilateral meshes. X-Git-Tag: relicensing~29^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=797ec0d24193c8de57cfe68aeff62b71070e7b85;p=dealii.git Assert that we only extrude quadrilateral meshes. Extruding mixed or triangle meshes requires wedges: this isn't implemented yet. --- diff --git a/source/grid/grid_generator.cc b/source/grid/grid_generator.cc index ad15ea7dbe..0ff6e12eb9 100644 --- a/source/grid/grid_generator.cc +++ b/source/grid/grid_generator.cc @@ -7067,6 +7067,9 @@ namespace GridGenerator "The number of slices for extrusion must be at least 2.")); Assert(std::is_sorted(slice_coordinates.begin(), slice_coordinates.end()), ExcMessage("Slice z-coordinates should be in ascending order")); + Assert(input.all_reference_cells_are_hyper_cube(), + ExcMessage( + "This function is only implemented for quadrilateral meshes.")); const auto priorities = [&]() -> std::vector { // if a non-empty (i.e., not the default) vector is given for