Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
number_cache.h
1 // ---------------------------------------------------------------------
2 // @f$Id: number_cache.h 30036 2013-07-18 16:55:32Z maier @f$
3 //
4 // Copyright (C) 1998 - 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__number_cache_h
18 #define __deal2__number_cache_h
19 
20 #include <deal.II/base/config.h>
21 #include <deal.II/base/index_set.h>
22 
23 #include <vector>
24 
25 
26 DEAL_II_NAMESPACE_OPEN
27 
28 namespace internal
29 {
30  namespace DoFHandler
31  {
38  struct NumberCache
39  {
43  NumberCache ();
44 
50  std::size_t memory_consumption () const;
51 
55  void clear ();
56 
64 
73 
84 
94  std::vector<types::global_dof_index> n_locally_owned_dofs_per_processor;
95 
105  std::vector<IndexSet> locally_owned_dofs_per_processor;
106 
111  template <class Archive>
112  void serialize (Archive &ar,
113  const unsigned int version);
114  };
115 
116 
117  template <class Archive>
118  void
120  const unsigned int /*version*/)
121  {
123  ar &locally_owned_dofs;
126  }
127 
128  }
129 }
130 
131 
132 DEAL_II_NAMESPACE_CLOSE
133 
134 #endif // __deal2__dof_iterator_selector_h
types::global_dof_index n_locally_owned_dofs
Definition: number_cache.h:72
void serialize(Archive &ar, const unsigned int version)
Definition: number_cache.h:119
unsigned int global_dof_index
Definition: types.h:100
std::size_t memory_consumption() const
std::vector< types::global_dof_index > n_locally_owned_dofs_per_processor
Definition: number_cache.h:94
std::vector< IndexSet > locally_owned_dofs_per_processor
Definition: number_cache.h:105
types::global_dof_index n_global_dofs
Definition: number_cache.h:63