From 797ec0d24193c8de57cfe68aeff62b71070e7b85 Mon Sep 17 00:00:00 2001 From: David Wells Date: Fri, 16 Feb 2024 09:32:53 -0500 Subject: [PATCH] Assert that we only extrude quadrilateral meshes. Extruding mixed or triangle meshes requires wedges: this isn't implemented yet. --- source/grid/grid_generator.cc | 3 +++ 1 file changed, 3 insertions(+) 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 -- 2.39.5