Reference documentation for deal.II version 8.5.1
number_cache.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1998 - 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__number_cache_h
17 #define dealii__number_cache_h
18 
19 #include <deal.II/base/config.h>
20 #include <deal.II/base/index_set.h>
21 
22 #include <vector>
23 
24 
25 DEAL_II_NAMESPACE_OPEN
26 
27 namespace internal
28 {
29  namespace DoFHandler
30  {
35  struct NumberCache
36  {
40  NumberCache ();
41 
46  std::size_t memory_consumption () const;
47 
51  void clear ();
52 
58 
64 
71 
77  std::vector<types::global_dof_index> n_locally_owned_dofs_per_processor;
78 
84  std::vector<IndexSet> locally_owned_dofs_per_processor;
85 
90  template <class Archive>
91  void serialize (Archive &ar,
92  const unsigned int version);
93  };
94 
95 
96  template <class Archive>
97  void
98  NumberCache::serialize (Archive &ar,
99  const unsigned int /*version*/)
100  {
102  ar &locally_owned_dofs;
105  }
106 
107  }
108 }
109 
110 
111 DEAL_II_NAMESPACE_CLOSE
112 
113 #endif // dealii__dof_iterator_selector_h
std::size_t memory_consumption() const
Definition: number_cache.cc:42
types::global_dof_index n_locally_owned_dofs
Definition: number_cache.h:63
void serialize(Archive &ar, const unsigned int version)
Definition: number_cache.h:98
unsigned int global_dof_index
Definition: types.h:88
std::vector< types::global_dof_index > n_locally_owned_dofs_per_processor
Definition: number_cache.h:77
std::vector< IndexSet > locally_owned_dofs_per_processor
Definition: number_cache.h:84
types::global_dof_index n_global_dofs
Definition: number_cache.h:57