Reference documentation for deal.II version 9.1.1
\(\newcommand{\dealcoloneq}{\mathrel{\vcenter{:}}=}\)
source
grid
tria_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
17
#include <deal.II/base/memory_consumption.h>
18
19
#include <deal.II/grid/tria_faces.h>
20
21
DEAL_II_NAMESPACE_OPEN
22
23
24
namespace
internal
25
{
26
namespace
TriangulationImplementation
27
{
28
std::size_t
29
TriaFaces<1>::memory_consumption
()
const
30
{
31
return
0;
32
}
33
34
35
std::size_t
36
TriaFaces<2>::memory_consumption
()
const
37
{
38
return
MemoryConsumption::memory_consumption
(lines);
39
}
40
41
42
std::size_t
43
TriaFaces<3>::memory_consumption
()
const
44
{
45
return
(
MemoryConsumption::memory_consumption
(quads) +
46
MemoryConsumption::memory_consumption
(lines));
47
}
48
}
// namespace TriangulationImplementation
49
}
// namespace internal
50
51
DEAL_II_NAMESPACE_CLOSE
internal::TriangulationImplementation::TriaFaces
Definition:
tria.h:70
internal
Definition:
aligned_vector.h:357
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