Reference documentation for deal.II version GIT 2896a7e638 2023-05-31 13: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\}}\)
face_info.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2018 - 2021 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 
17 #ifndef dealii_matrix_free_face_info_h
18 #define dealii_matrix_free_face_info_h
19 
20 
21 #include <deal.II/base/config.h>
22 
25 #include <deal.II/base/table.h>
26 
27 
29 
30 
31 
32 namespace internal
33 {
34  namespace MatrixFreeFunctions
35  {
53  template <int vectorization_width>
55  {
61  std::array<unsigned int, vectorization_width> cells_interior;
62 
76  std::array<unsigned int, vectorization_width> cells_exterior;
77 
85 
90  unsigned char interior_face_no;
91 
97  unsigned char subface_index;
98 
111  unsigned char face_orientation;
112 
117  unsigned char face_type;
118 
122  std::size_t
124  {
125  return sizeof(*this);
126  }
127  };
128 
129 
130 
135  template <int vectorization_width>
136  struct FaceInfo
137  {
142  void
144  {
145  faces.clear();
148  }
149 
153  std::size_t
155  {
156  return sizeof(faces) +
157  cell_and_face_to_plain_faces.memory_consumption() +
158  cell_and_face_boundary_id.memory_consumption();
159  }
160 
165  std::vector<FaceToCellTopology<vectorization_width>> faces;
166 
174 
180  };
181  } // end of namespace MatrixFreeFunctions
182 } // end of namespace internal
183 
185 
186 #endif
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:474
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:475
unsigned int boundary_id
Definition: types.h:141
::Table< 3, unsigned int > cell_and_face_to_plain_faces
Definition: face_info.h:173
std::size_t memory_consumption() const
Definition: face_info.h:154
std::vector< FaceToCellTopology< vectorization_width > > faces
Definition: face_info.h:165
::Table< 3, types::boundary_id > cell_and_face_boundary_id
Definition: face_info.h:179
std::array< unsigned int, vectorization_width > cells_interior
Definition: face_info.h:61
std::array< unsigned int, vectorization_width > cells_exterior
Definition: face_info.h:76