From 7f69aceb766bfae9066f0ded44f12e4ad32b29c9 Mon Sep 17 00:00:00 2001 From: David Wells Date: Thu, 10 Apr 2025 07:54:55 -0400 Subject: [PATCH] ReferenceCell: remove two more 1d workarounds. --- include/deal.II/grid/reference_cell.h | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/include/deal.II/grid/reference_cell.h b/include/deal.II/grid/reference_cell.h index 3dd718f91e..8d3cf0f0f3 100644 --- a/include/deal.II/grid/reference_cell.h +++ b/include/deal.II/grid/reference_cell.h @@ -3602,12 +3602,7 @@ ReferenceCell::get_combined_orientation( switch (this->kind) { case ReferenceCells::Vertex: - // TODO: we can get rid of this special-case and use - // vertex_vertex_permutations once we make 0 the default orientation. - (void)vertex_vertex_permutations; - if (vertices_0[0] == vertices_1[0]) - return numbers::default_geometric_orientation; - break; + return compute_orientation(vertex_vertex_permutations); case ReferenceCells::Line: return compute_orientation(line_vertex_permutations); case ReferenceCells::Triangle: @@ -3669,9 +3664,7 @@ ReferenceCell::permute_by_combined_orientation( switch (this->kind) { case ReferenceCells::Vertex: - // TODO: we can get rid of this special-case and use - // vertex_vertex_permutations once we make 0 the default orientation. - std::copy(vertices.begin(), vertices.end(), result.begin()); + permute(vertex_vertex_permutations); break; case ReferenceCells::Line: permute(line_vertex_permutations); -- 2.39.5