Reference documentation for deal.II version GIT acb749f4f5 2024-02-21 16:10:02+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
tria_orientation.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2023 by the deal.II authors
4//
5// This file is part of the deal.II library.
6//
7// The deal.II library is free software; you can use it, redistribute
8// it, and/or modify it under the terms of the GNU Lesser General
9// Public License as published by the Free Software Foundation; either
10// version 2.1 of the License, or (at your option) any later version.
11// The full text of the license can be found in the file LICENSE.md at
12// the top level directory of deal.II.
13//
14// ---------------------------------------------------------------------
15
16#ifndef dealii_tria_orientation_h
17#define dealii_tria_orientation_h
18
19#include <deal.II/base/config.h>
20
22
23#include <tuple>
24
26
27namespace internal
28{
32 inline unsigned char
33 combined_face_orientation(const bool face_orientation,
34 const bool face_rotation,
35 const bool face_flip)
36 {
37 return (face_orientation ? 1 : 0) + (face_rotation ? 2 : 0) +
38 (face_flip ? 4 : 0);
39 }
40
45 inline std::tuple<bool, bool, bool>
52
53
54} // namespace internal
55
56
57
59
60#endif
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:503
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:504
bool get_bit(const unsigned char number, const unsigned int n)
Definition utilities.h:1577
std::tuple< bool, bool, bool > split_face_orientation(const unsigned char combined_face_orientation)
unsigned char combined_face_orientation(const bool face_orientation, const bool face_rotation, const bool face_flip)