From 0c2b2cec57fcb9bb6ecab2f1dd7721623b9aa615 Mon Sep 17 00:00:00 2001 From: David Wells Date: Sat, 21 Jan 2023 13:16:58 -0500 Subject: [PATCH] ReferenceCell: Use unsigned chars for orientation. --- include/deal.II/grid/reference_cell.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/deal.II/grid/reference_cell.h b/include/deal.II/grid/reference_cell.h index 5ff5140e4d..a633d5910c 100644 --- a/include/deal.II/grid/reference_cell.h +++ b/include/deal.II/grid/reference_cell.h @@ -617,7 +617,7 @@ public: * these orientation indices. */ template - unsigned int + unsigned char get_orientation_index(const ArrayView &vertices_0, const ArrayView &vertices_1) const; @@ -654,7 +654,7 @@ public: template boost::container::small_vector reorient_based_on_orientation_index(const ArrayView &vertices, - const unsigned int orientation) const; + const unsigned char orientation) const; /** * Return a vector of faces a given @p vertex_index belongs to. @@ -2676,7 +2676,7 @@ ReferenceCell::compute_orientation(const std::array &vertices_0, template -unsigned int +unsigned char ReferenceCell::get_orientation_index(const ArrayView &vertices_0, const ArrayView &vertices_1) const { @@ -2853,7 +2853,7 @@ template boost::container::small_vector ReferenceCell::reorient_based_on_orientation_index( const ArrayView &vertices, - const unsigned int orientation) const + const unsigned char orientation) const { Assert(vertices.size() == n_vertices(), ExcMessage("The number of array elements must be equal to " -- 2.39.5