Skip to content

Commit

Permalink
Merge pull request #16657 from drwells/extrude-assert
Browse files Browse the repository at this point in the history
Assert that we only extrude quadrilateral meshes.
  • Loading branch information
bangerth committed Feb 16, 2024
2 parents 82a82ba + 797ec0d commit 4bd0064
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/grid/grid_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<types::manifold_id> {
// if a non-empty (i.e., not the default) vector is given for
Expand Down

0 comments on commit 4bd0064

Please sign in to comment.