From 4034150bd81ba231104eed8a28d719d04315b57d Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Wed, 29 Dec 2021 17:26:31 -0500 Subject: [PATCH] Change type of line_orientation in standard_vs_true_line_orientation --- include/deal.II/grid/reference_cell.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/deal.II/grid/reference_cell.h b/include/deal.II/grid/reference_cell.h index 2643fa5940..ee0a8add3e 100644 --- a/include/deal.II/grid/reference_cell.h +++ b/include/deal.II/grid/reference_cell.h @@ -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(line_orientation) == + return (line_orientation == bool_table[line / 2][face_orientation][face_flip][face_rotation]); } else -- 2.39.5