Reference documentation for deal.II version 8.5.1
number_cache.cc
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 1998 - 2014 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 #include <deal.II/base/memory_consumption.h>
17 #include <deal.II/dofs/number_cache.h>
18 
19 DEAL_II_NAMESPACE_OPEN
20 
21 namespace internal
22 {
23  namespace DoFHandler
24  {
26  :
27  n_global_dofs (0),
28  n_locally_owned_dofs (0)
29  {}
30 
31 
33  {
34  n_global_dofs = 0;
39  }
40 
41  std::size_t
43  {
44  return
50  }
51  }
52 }
53 
54 DEAL_II_NAMESPACE_CLOSE
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 clear()
Definition: index_set.h:1393
std_cxx11::enable_if< std_cxx11::is_fundamental< T >::value, std::size_t >::type memory_consumption(const T &t)
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