Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assert that we only extrude quadrilateral meshes. #16657

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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