dune-localfunctions
2.3.1
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
dune
localfunctions
lagrange
qk.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
4
#ifndef DUNE_LOCALFUNCTIONS_QK_LOCALFINITEELEMENT_HH
5
#define DUNE_LOCALFUNCTIONS_QK_LOCALFINITEELEMENT_HH
6
7
#include "
qk/qklocalinterpolation.hh
"
8
#include "
qk/qklocalbasis.hh
"
9
#include "
qk/qklocalcoefficients.hh
"
10
11
namespace
Dune
12
{
21
template
<
class
D,
class
R,
int
d,
int
k>
22
class
QkLocalFiniteElement
{
23
24
typedef
QkLocalBasis<D,R,k,d>
LocalBasis
;
25
typedef
QkLocalCoefficients<k,d>
LocalCoefficients
;
26
typedef
QkLocalInterpolation<k,d,LocalBasis>
LocalInterpolation
;
27
28
public
:
29
32
typedef
LocalFiniteElementTraits<LocalBasis,QkLocalCoefficients<k,d>
,
LocalInterpolation
>
Traits
;
33
36
QkLocalFiniteElement
()
37
{
38
gt.makeCube(d);
39
}
40
43
const
typename
Traits::LocalBasisType
&
localBasis
()
const
44
{
45
return
basis;
46
}
47
50
const
typename
Traits::LocalCoefficientsType
&
localCoefficients
()
const
51
{
52
return
coefficients;
53
}
54
57
const
typename
Traits::LocalInterpolationType
&
localInterpolation
()
const
58
{
59
return
interpolation;
60
}
61
64
GeometryType
type
()
const
65
{
66
return
gt;
67
}
68
69
QkLocalFiniteElement
*
clone
()
const
70
{
71
return
new
QkLocalFiniteElement
(*
this
);
72
}
73
74
private
:
75
LocalBasis basis;
76
LocalCoefficients coefficients;
77
LocalInterpolation interpolation;
78
GeometryType gt;
79
};
80
81
}
82
83
#endif
Generated on Mon Nov 24 2014 20:50:33 for dune-localfunctions by
1.8.1.2