Reference documentation for deal.II version 8.5.1
dof_faces.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2006 - 2015 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 at
12 // the top level of the deal.II distribution.
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 #include <deal.II/base/exceptions.h>
22 #include <deal.II/dofs/dof_objects.h>
23 #include <vector>
24 
25 DEAL_II_NAMESPACE_OPEN
26 
27 namespace internal
28 {
35  namespace DoFHandler
36  {
37 
67  template<int dim>
68  class DoFFaces
69  {
74  private:
75  DoFFaces();
76  };
77 
84  template<>
85  class DoFFaces<1>
86  {
87  public:
92  std::size_t memory_consumption () const;
93 
98  template <class Archive>
99  void serialize(Archive &ar,
100  const unsigned int version);
101  };
102 
109  template<>
110  class DoFFaces<2>
111  {
112  public:
117 
122  std::size_t memory_consumption () const;
123 
128  template <class Archive>
129  void serialize(Archive &ar,
130  const unsigned int version);
131  };
132 
139  template<>
140  class DoFFaces<3>
141  {
142  public:
147 
152 
157  std::size_t memory_consumption () const;
158 
163  template <class Archive>
164  void serialize(Archive &ar,
165  const unsigned int version);
166  };
167 
168 
169 
170  template <class Archive>
171  void DoFFaces<1>::serialize (Archive &,
172  const unsigned int)
173  {}
174 
175 
176  template <class Archive>
177  void DoFFaces<2>::serialize (Archive &ar,
178  const unsigned int)
179  {
180  ar &lines;
181  }
182 
183 
184  template <class Archive>
185  void DoFFaces<3>::serialize (Archive &ar,
186  const unsigned int)
187  {
188  ar &lines &quads;
189  }
190 
191  }
192 }
193 
194 DEAL_II_NAMESPACE_CLOSE
195 
196 #endif
internal::DoFHandler::DoFObjects< 1 > lines
Definition: dof_faces.h:116
internal::DoFHandler::DoFObjects< 1 > lines
Definition: dof_faces.h:146
internal::DoFHandler::DoFObjects< 2 > quads
Definition: dof_faces.h:151