Reference documentation for deal.II version 9.2.0
\(\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 - 2019 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  {
55  template <int vectorization_width>
57  {
63  unsigned int cells_interior[vectorization_width];
64 
78  unsigned int cells_exterior[vectorization_width];
79 
84  unsigned char interior_face_no;
85 
92  unsigned char exterior_face_no;
93 
99  unsigned char subface_index;
100 
108  unsigned char face_orientation;
109 
113  std::size_t
115  {
116  return sizeof(*this);
117  }
118  };
119 
120 
121 
126  template <int vectorization_width>
127  struct FaceInfo
128  {
133  void
135  {
136  faces = std::vector<FaceToCellTopology<vectorization_width>>();
139  }
140 
144  std::size_t
146  {
147  return sizeof(faces) +
149  cell_and_face_boundary_id.memory_consumption();
150  }
151 
156  std::vector<FaceToCellTopology<vectorization_width>> faces;
157 
164 
170  };
171  } // end of namespace MatrixFreeFunctions
172 } // end of namespace internal
173 
175 
176 #endif
internal::MatrixFreeFunctions::FaceToCellTopology::exterior_face_no
unsigned char exterior_face_no
Definition: face_info.h:92
internal::MatrixFreeFunctions::FaceToCellTopology::cells_interior
unsigned int cells_interior[vectorization_width]
Definition: face_info.h:63
internal::MatrixFreeFunctions::FaceToCellTopology::cells_exterior
unsigned int cells_exterior[vectorization_width]
Definition: face_info.h:78
TableIndices< 3 >
memory_consumption.h
internal::MatrixFreeFunctions::FaceToCellTopology
Definition: face_info.h:56
TableBase::reinit
void reinit(const TableIndices< N > &new_size, const bool omit_default_initialization=false)
internal::MatrixFreeFunctions::FaceToCellTopology::subface_index
unsigned char subface_index
Definition: face_info.h:99
Table< 3, unsigned int >
internal::MatrixFreeFunctions::FaceInfo
Definition: face_info.h:127
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
internal::MatrixFreeFunctions::FaceToCellTopology::interior_face_no
unsigned char interior_face_no
Definition: face_info.h:84
internal::MatrixFreeFunctions::FaceInfo::cell_and_face_boundary_id
::Table< 3, types::boundary_id > cell_and_face_boundary_id
Definition: face_info.h:169
exceptions.h
internal::MatrixFreeFunctions::FaceToCellTopology::face_orientation
unsigned char face_orientation
Definition: face_info.h:108
config.h
TableBase::memory_consumption
std::size_t memory_consumption() const
internal::MatrixFreeFunctions::FaceInfo::memory_consumption
std::size_t memory_consumption() const
Definition: face_info.h:145
internal
Definition: aligned_vector.h:369
internal::MatrixFreeFunctions::FaceInfo::faces
std::vector< FaceToCellTopology< vectorization_width > > faces
Definition: face_info.h:156
internal::MatrixFreeFunctions::FaceToCellTopology::memory_consumption
std::size_t memory_consumption() const
Definition: face_info.h:114
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359
internal::MatrixFreeFunctions::FaceInfo::cell_and_face_to_plain_faces
::Table< 3, unsigned int > cell_and_face_to_plain_faces
Definition: face_info.h:163
table.h
internal::MatrixFreeFunctions::FaceInfo::clear
void clear()
Definition: face_info.h:134