Reference documentation for deal.II version 9.0.0
source
hp
dof_faces.cc
1
// ---------------------------------------------------------------------
2
//
3
// Copyright (C) 2006 - 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/hp/dof_faces.h>
18
19
DEAL_II_NAMESPACE_OPEN
20
21
namespace
internal
22
{
23
namespace
hp
24
{
25
// ---------------------- DoFObjects ----------------------------
26
27
template
<
int
structdim>
28
std::size_t
29
DoFIndicesOnFacesOrEdges<structdim>::memory_consumption
()
const
30
{
31
return
(
MemoryConsumption::memory_consumption
(dofs) +
32
MemoryConsumption::memory_consumption
(dof_offsets));
33
}
34
35
36
// explicit instantiations
37
template
38
std::size_t
39
DoFIndicesOnFacesOrEdges<1>::memory_consumption
()
const
;
40
41
template
42
std::size_t
43
DoFIndicesOnFacesOrEdges<2>::memory_consumption
()
const
;
44
45
template
46
std::size_t
47
DoFIndicesOnFacesOrEdges<3>::memory_consumption
()
const
;
48
49
50
// ---------------------- DoFFaces ----------------------------
51
52
std::size_t
53
DoFIndicesOnFaces<1>::memory_consumption
()
const
54
{
55
return
0;
56
}
57
58
59
60
std::size_t
61
DoFIndicesOnFaces<2>::memory_consumption
()
const
62
{
63
return
MemoryConsumption::memory_consumption
(lines);
64
}
65
66
67
68
std::size_t
69
DoFIndicesOnFaces<3>::memory_consumption
()
const
70
{
71
return
(
MemoryConsumption::memory_consumption
(lines) +
72
MemoryConsumption::memory_consumption
(quads) );
73
}
74
75
}
76
}
77
78
DEAL_II_NAMESPACE_CLOSE
internal::hp::DoFIndicesOnFacesOrEdges::memory_consumption
std::size_t memory_consumption() const
Definition:
dof_faces.cc:29
hp
Definition:
hp.h:102
internal
Definition:
aligned_vector.h:327
internal::hp::DoFIndicesOnFaces
Definition:
dof_faces.h:234
MemoryConsumption::memory_consumption
std::enable_if< std::is_fundamental< T >::value, std::size_t >::type memory_consumption(const T &t)
Definition:
memory_consumption.h:273
Generated by
1.8.14