]> https://gitweb.dealii.org/ - dealii.git/commitdiff
ReferenceCell: Use unsigned chars for orientation.
authorDavid Wells <drwells@email.unc.edu>
Sat, 21 Jan 2023 18:16:58 +0000 (13:16 -0500)
committerDavid Wells <drwells@email.unc.edu>
Sun, 22 Jan 2023 20:19:45 +0000 (15:19 -0500)
include/deal.II/grid/reference_cell.h

index 5ff5140e4d54b0220a64624222fddffe391ac50f..a633d5910ca8ff0457d0d78bcf8028befda66c5d 100644 (file)
@@ -617,7 +617,7 @@ public:
    *   these orientation indices.
    */
   template <typename T>
-  unsigned int
+  unsigned char
   get_orientation_index(const ArrayView<const T> &vertices_0,
                         const ArrayView<const T> &vertices_1) const;
 
@@ -654,7 +654,7 @@ public:
   template <typename T>
   boost::container::small_vector<T, 8>
   reorient_based_on_orientation_index(const ArrayView<const T> &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<T, N> &vertices_0,
 
 
 template <typename T>
-unsigned int
+unsigned char
 ReferenceCell::get_orientation_index(const ArrayView<const T> &vertices_0,
                                      const ArrayView<const T> &vertices_1) const
 {
@@ -2853,7 +2853,7 @@ template <typename T>
 boost::container::small_vector<T, 8>
 ReferenceCell::reorient_based_on_orientation_index(
   const ArrayView<const T> &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 "

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.