deal.II version GIT relicensing-2167-g9622207b8f 2024-11-21 12:40:00+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_faces.h
Go to the documentation of this file.
1// ------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: LGPL-2.1-or-later
4// Copyright (C) 2006 - 2023 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Part of the source code is dual licensed under Apache-2.0 WITH
9// LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10// governing the source code and code contributions can be found in
11// LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12//
13// ------------------------------------------------------------------------
14
15#ifndef dealii_tria_faces_h
16#define dealii_tria_faces_h
17
18#include <deal.II/base/config.h>
19
22
23
25
26namespace internal
27{
28 namespace TriangulationImplementation
29 {
43 {
44 public:
48 TriaFaces(const unsigned int dim);
49
53 TriaFaces() = default;
54
58 unsigned int dim;
59
66
73 std::vector<bool> quads_line_orientations;
74
82 std::vector<bool> quad_is_quadrilateral;
83
88 get_quad_type(const std::size_t index) const;
89
93 void
94 set_quad_type(const std::size_t index, const ReferenceCell face_type);
95
102
107 std::size_t
108 memory_consumption() const;
109
115 template <class Archive>
116 void
117 serialize(Archive &ar, const unsigned int version);
118 };
119
120
121
122 inline ReferenceCell
129
130
131
132 inline void
134 const ReferenceCell face_type)
135 {
138 face_type == ReferenceCells::Triangle,
140 if (face_type == ReferenceCells::Quadrilateral)
142 else
144 }
145
146
147
148 template <class Archive>
149 void
150 TriaFaces::serialize(Archive &ar, const unsigned int)
151 {
152 ar &dim;
154 }
155 } // namespace TriangulationImplementation
156} // namespace internal
157
159
160#endif
ReferenceCell get_quad_type(const std::size_t index) const
Definition tria_faces.h:123
void serialize(Archive &ar, const unsigned int version)
Definition tria_faces.h:150
void set_quad_type(const std::size_t index, const ReferenceCell face_type)
Definition tria_faces.h:133
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:498
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:499
#define Assert(cond, exc)
#define AssertIndexRange(index, range)
static ::ExceptionBase & ExcInternalError()
constexpr const ReferenceCell Quadrilateral
constexpr const ReferenceCell Triangle