dune-localfunctions
2.6-git
dune
localfunctions
whitney
edges0.5.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_WHITNEY_EDGES0_5_HH
5
#define DUNE_LOCALFUNCTIONS_WHITNEY_EDGES0_5_HH
6
7
#include <dune/geometry/type.hh>
8
9
#include <
dune/localfunctions/whitney/edges0.5/basis.hh
>
10
#include <
dune/localfunctions/whitney/edges0.5/coefficients.hh
>
11
#include <
dune/localfunctions/whitney/edges0.5/interpolation.hh
>
12
13
namespace
Dune
{
14
16
//
17
// FiniteElement
18
//
19
21
39
template
<
class
Geometry,
class
RF>
40
class
EdgeS0_5FiniteElement
{
41
public
:
45
struct
Traits
{
46
typedef
EdgeS0_5Basis<Geometry, RF>
Basis
;
47
typedef
EdgeS0_5Interpolation
<Geometry,
48
typename
Basis::Traits>
Interpolation
;
49
typedef
EdgeS0_5Coefficients<Geometry::mydimension>
Coefficients
;
50
};
51
52
private
:
53
typename
Traits::Basis
basis_;
54
typename
Traits::Interpolation
interpolation_;
55
static
const
typename
Traits::Coefficients
& coefficients_;
56
57
public
:
59
62
template
<
class
VertexOrder>
63
EdgeS0_5FiniteElement
(
const
Geometry& geo,
64
const
VertexOrder& vertexOrder) :
65
basis_(geo, vertexOrder), interpolation_(geo, vertexOrder)
66
{ }
67
69
const
typename
Traits::Basis
&
basis
()
const
{
return
basis_; }