From: David Wells Date: Sat, 21 Jan 2023 18:16:58 +0000 (-0500) Subject: ReferenceCell: Use unsigned chars for orientation. X-Git-Tag: v9.5.0-rc1~612^2~4 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c2b2cec57fcb9bb6ecab2f1dd7721623b9aa615;p=dealii.git ReferenceCell: Use unsigned chars for orientation. --- 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 "