dune-localfunctions
2.7.0
dune
localfunctions
lagrange
p0
p0localcoefficients.hh
Go to the documentation of this file.
1
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2
// vi: set et ts=4 sw=2 sts=2:
3
#ifndef DUNE_P0LOCALCOEFFICIENTS_HH
4
#define DUNE_P0LOCALCOEFFICIENTS_HH
5
6
#include <cstddef>
7
#include <iostream>
8
#include <vector>
9
10
#include <
dune/localfunctions/common/localkey.hh
>
11
12
namespace
Dune
13
{
14
21
class
P0LocalCoefficients
22
{
23
public
:
25
P0LocalCoefficients
() : index(0,0,0)
26
{}
27
29
std::size_t
size
()
const
30
{
31
return
1;
32
}
33
35
const
LocalKey
&
localKey
(std::size_t i)
const
36
{
37
return
index;
38
}
39
40
private
:
41
LocalKey
index;
42
};
43
44
}
45
#endif
Dune
Definition:
bdfmcube.hh:15
localkey.hh
Dune::P0LocalCoefficients::localKey
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition:
p0localcoefficients.hh:35
Dune::P0LocalCoefficients::size
std::size_t size() const
number of coefficients
Definition:
p0localcoefficients.hh:29
Dune::P0LocalCoefficients
Layout map for P0 elements.
Definition:
p0localcoefficients.hh:21
Dune::P0LocalCoefficients::P0LocalCoefficients
P0LocalCoefficients()
Standard constructor.
Definition:
p0localcoefficients.hh:25
Dune::LocalKey
Describe position of one degree of freedom.
Definition:
localkey.hh:20
Generated by
1.8.17