Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
dof_faces.h
1 // ---------------------------------------------------------------------
2 // @f$Id: dof_faces.h 30036 2013-07-18 16:55:32Z maier @f$
3 //
4 // Copyright (C) 2006 - 2013 by the deal.II authors
5 //
6 // This file is part of the deal.II library.
7 //
8 // The deal.II library is free software; you can use it, redistribute
9 // it, and/or modify it under the terms of the GNU Lesser General
10 // Public License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 // The full text of the license can be found in the file LICENSE at
13 // the top level of the deal.II distribution.
14 //
15 // ---------------------------------------------------------------------
16 
17 #ifndef __deal2__dof_faces_h
18 #define __deal2__dof_faces_h
19 
20 
21 #include <deal.II/base/config.h>
23 #include <deal.II/dofs/dof_objects.h>
24 #include <vector>
25 
27 
28 template <int, int> class DoFHandler;
29 template <int, int> class MGDoFHandler;
30 
31 namespace internal
32 {
38  namespace DoFHandler
39  {
40 
66  template<int dim>
67  class DoFFaces
68  {
74  private:
75  DoFFaces();
76  };
77 
84  template<>
85  class DoFFaces<1>
86  {
87  public:
93  std::size_t memory_consumption () const;
94 
99  template <class Archive>
100  void serialize(Archive &ar,
101  const unsigned int version);
102  };
103 
109  template<>
110  class DoFFaces<2>
111  {
112  public:
118 
124  std::size_t memory_consumption () const;
125 
130  template <class Archive>
131  void serialize(Archive &ar,
132  const unsigned int version);
133  };
134 
140  template<>
141  class DoFFaces<3>
142  {
143  public:
149 
155 
161  std::size_t memory_consumption () const;
162 
167  template <class Archive>
168  void serialize(Archive &ar,
169  const unsigned int version);
170  };
171 
172 
173 
174  template <class Archive>
175  void DoFFaces<1>::serialize (Archive &,
176  const unsigned int)
177  {}
178 
179 
180  template <class Archive>
181  void DoFFaces<2>::serialize (Archive &ar,
182  const unsigned int)
183  {
184  ar &lines;
185  }
186 
187 
188  template <class Archive>
189  void DoFFaces<3>::serialize (Archive &ar,
190  const unsigned int)
191  {
192  ar &lines &quads;
193  }
194 
195  }
196 }
197 
198 DEAL_II_NAMESPACE_CLOSE
199 
200 #endif
internal::DoFHandler::DoFObjects< 1 > lines
Definition: dof_faces.h:117
internal::DoFHandler::DoFObjects< 1 > lines
Definition: dof_faces.h:148
internal::DoFHandler::DoFObjects< 2 > quads
Definition: dof_faces.h:154