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\}}\)
dof_faces.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2006 - 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 #ifndef dealii_dof_faces_h
17 #define dealii_dof_faces_h
18 
19 
20 #include <deal.II/base/config.h>
21 
23 
25 
26 #include <vector>
27 
29 
30 namespace internal
31 {
38  namespace DoFHandlerImplementation
39  {
69  template <int dim>
70  class DoFFaces
71  {
72  public:
77  DoFFaces() = delete;
78  };
79 
86  template <>
87  class DoFFaces<1>
88  {
89  public:
94  std::size_t
95  memory_consumption() const;
96 
101  template <class Archive>
102  void
103  serialize(Archive &ar, const unsigned int version);
104  };
105 
112  template <>
113  class DoFFaces<2>
114  {
115  public:
120 
125  std::size_t
126  memory_consumption() const;
127 
132  template <class Archive>
133  void
134  serialize(Archive &ar, const unsigned int version);
135  };
136 
143  template <>
144  class DoFFaces<3>
145  {
146  public:
151 
156 
161  std::size_t
162  memory_consumption() const;
163 
168  template <class Archive>
169  void
170  serialize(Archive &ar, const unsigned int version);
171  };
172 
173 
174 
175  template <class Archive>
176  void
177  DoFFaces<1>::serialize(Archive &, const unsigned int)
178  {}
179 
180 
181  template <class Archive>
182  void
183  DoFFaces<2>::serialize(Archive &ar, const unsigned int)
184  {
185  ar &lines;
186  }
187 
188 
189  template <class Archive>
190  void
191  DoFFaces<3>::serialize(Archive &ar, const unsigned int)
192  {
193  ar &lines &quads;
194  }
195 
196  } // namespace DoFHandlerImplementation
197 } // namespace internal
198 
200 
201 #endif
internal::DoFHandlerImplementation::DoFFaces< 2 >::lines
internal::DoFHandlerImplementation::DoFObjects< 1 > lines
Definition: dof_faces.h:119
dof_objects.h
DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_OPEN
Definition: config.h:358
MemoryConsumption::memory_consumption
std::enable_if< std::is_fundamental< T >::value, std::size_t >::type memory_consumption(const T &t)
Definition: memory_consumption.h:268
internal::DoFHandlerImplementation::DoFFaces::DoFFaces
DoFFaces()=delete
exceptions.h
internal::DoFHandlerImplementation::DoFFaces< 3 >::quads
internal::DoFHandlerImplementation::DoFObjects< 2 > quads
Definition: dof_faces.h:155
internal::DoFHandlerImplementation::DoFObjects< 1 >
internal::DoFHandlerImplementation::DoFFaces< 3 >::lines
internal::DoFHandlerImplementation::DoFObjects< 1 > lines
Definition: dof_faces.h:150
config.h
internal
Definition: aligned_vector.h:369
internal::DoFHandlerImplementation::DoFFaces
Definition: dof_faces.h:70
DEAL_II_NAMESPACE_CLOSE
#define DEAL_II_NAMESPACE_CLOSE
Definition: config.h:359