Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
face_info.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2018 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/exceptions.h>
22 #include <deal.II/base/memory_consumption.h>
23 #include <deal.II/base/table.h>
24 
25 
26 DEAL_II_NAMESPACE_OPEN
27 
28 
29 
30 namespace internal
31 {
32  namespace MatrixFreeFunctions
33  {
53  template <int vectorization_width>
55  {
61  unsigned int cells_interior[vectorization_width];
62 
76  unsigned int cells_exterior[vectorization_width];
77 
82  unsigned char interior_face_no;
83 
90  unsigned char exterior_face_no;
91 
97  unsigned char subface_index;
98 
106  unsigned char face_orientation;
107 
111  std::size_t
113  {
114  return sizeof(*this);
115  }
116  };
117 
118 
119 
124  template <int vectorization_width>
125  struct FaceInfo
126  {
131  void
133  {
134  faces = std::vector<FaceToCellTopology<vectorization_width>>();
137  }
138 
142  std::size_t
144  {
145  return sizeof(faces) +
148  }
149 
154  std::vector<FaceToCellTopology<vectorization_width>> faces;
155 
162 
168  };
169  } // end of namespace MatrixFreeFunctions
170 } // end of namespace internal
171 
172 DEAL_II_NAMESPACE_CLOSE
173 
174 #endif
std::size_t memory_consumption() const
Definition: face_info.h:143
::Table< 3, unsigned int > cell_and_face_to_plain_faces
Definition: face_info.h:161
unsigned int cells_interior[vectorization_width]
Definition: face_info.h:61
void reinit(const TableIndices< N > &new_size, const bool omit_default_initialization=false)
std::vector< FaceToCellTopology< vectorization_width > > faces
Definition: face_info.h:154
::Table< 3, types::boundary_id > cell_and_face_boundary_id
Definition: face_info.h:167
std::size_t memory_consumption() const
unsigned int cells_exterior[vectorization_width]
Definition: face_info.h:76