]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Change type of line_orientation in standard_vs_true_line_orientation 13162/head
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 29 Dec 2021 22:26:31 +0000 (17:26 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Mon, 3 Jan 2022 17:22:13 +0000 (12:22 -0500)
include/deal.II/grid/reference_cell.h

index 2643fa5940f31850b13300a3e674a81864f6ff3f..ee0a8add3e5199e94405d507bf5ebedc8771dade 100644 (file)
@@ -417,7 +417,7 @@ public:
   bool
   standard_vs_true_line_orientation(const unsigned int  line,
                                     const unsigned char face_orientation,
-                                    const unsigned char line_orientation) const;
+                                    const bool          line_orientation) const;
 
   /**
    * @}
@@ -1940,7 +1940,7 @@ inline bool
 ReferenceCell::standard_vs_true_line_orientation(
   const unsigned int  line,
   const unsigned char face_orientation_raw,
-  const unsigned char line_orientation) const
+  const bool          line_orientation) const
 {
   if (*this == ReferenceCells::Hexahedron)
     {
@@ -1962,7 +1962,7 @@ ReferenceCell::standard_vs_true_line_orientation(
       const bool face_flip        = Utilities::get_bit(face_orientation_raw, 2);
       const bool face_rotation    = Utilities::get_bit(face_orientation_raw, 1);
 
-      return (static_cast<bool>(line_orientation) ==
+      return (line_orientation ==
               bool_table[line / 2][face_orientation][face_flip][face_rotation]);
     }
   else

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.