From: Daniel Arndt Date: Wed, 29 Dec 2021 22:26:31 +0000 (-0500) Subject: Change type of line_orientation in standard_vs_true_line_orientation X-Git-Tag: v9.4.0-rc1~680^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F13162%2Fhead;p=dealii.git Change type of line_orientation in standard_vs_true_line_orientation --- 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