Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
source
hp
dof_faces.cc
1
// ---------------------------------------------------------------------
2
//
3
// Copyright (C) 2006 - 2018 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.md at
12
// the top level directory of deal.II.
13
//
14
// ---------------------------------------------------------------------
15
16
#include <deal.II/base/memory_consumption.h>
17
18
#include <deal.II/hp/dof_faces.h>
19
20
DEAL_II_NAMESPACE_OPEN
21
22
namespace
internal
23
{
24
namespace
hp
25
{
26
// ---------------------- DoFObjects ----------------------------
27
28
template
<
int
structdim>
29
std::size_t
30
DoFIndicesOnFacesOrEdges<structdim>::memory_consumption
()
const
31
{
32
return
(
MemoryConsumption::memory_consumption
(dofs) +
33
MemoryConsumption::memory_consumption
(dof_offsets));
34
}
35
36
37
// explicit instantiations
38
template
std::size_t
39
DoFIndicesOnFacesOrEdges<1>::memory_consumption
()
const
;
40
41
template
std::size_t
42
DoFIndicesOnFacesOrEdges<2>::memory_consumption
()
const
;
43
44
template
std::size_t
45
DoFIndicesOnFacesOrEdges<3>::memory_consumption
()
const
;
46
47
48
// ---------------------- DoFFaces ----------------------------
49
50
std::size_t
51
DoFIndicesOnFaces<1>::memory_consumption
()
const
52
{
53
return
0;
54
}
55
56
57
58
std::size_t
59
DoFIndicesOnFaces<2>::memory_consumption
()
const
60
{
61
return
MemoryConsumption::memory_consumption
(lines);
62
}
63
64
65
66
std::size_t
67
DoFIndicesOnFaces<3>::memory_consumption
()
const
68
{
69
return
(
MemoryConsumption::memory_consumption
(lines) +
70
MemoryConsumption::memory_consumption
(quads));
71
}
72
73
}
// namespace hp
74
}
// namespace internal
75
76
DEAL_II_NAMESPACE_CLOSE
internal::hp::DoFIndicesOnFacesOrEdges::memory_consumption
std::size_t memory_consumption() const
Definition:
dof_faces.cc:30
hp
Definition:
hp.h:117
internal
Definition:
aligned_vector.h:357
internal::hp::DoFIndicesOnFaces
Definition:
dof_faces.h:239
MemoryConsumption::memory_consumption
std::enable_if< std::is_fundamental< T >::value, std::size_t >::type memory_consumption(const T &t)
Definition:
memory_consumption.h:274
Generated by
1.8.14