From: David Wells <drwells@email.unc.edu> Date: Thu, 10 Apr 2025 11:54:55 +0000 (-0400) Subject: ReferenceCell: remove two more 1d workarounds. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f69aceb766bfae9066f0ded44f12e4ad32b29c9;p=dealii.git ReferenceCell: remove two more 1d workarounds. --- 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);