dune-localfunctions  2.4.1
pk.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 /* vim: set ai expandtab sw=4 ts=4: */
4 #ifndef DUNE_PK_LOCALFINITEELEMENT_HH
5 #define DUNE_PK_LOCALFINITEELEMENT_HH
6 
7 #include "p0.hh"
8 #include "p1.hh"
9 #include "pk1d.hh"
10 #include "pk2d.hh"
11 #include "pk3d.hh"
12 
13 namespace Dune
14 {
15 
23  template<class D, class R, int d, int k>
25  {
26  public:
28  {}
29 
36  PkLocalFiniteElement(const unsigned int vertexmap[k+1])
37  {}
38  };
39 #if 0
40 
45  template<class D, class R>
46  class PkLocalFiniteElement<D, R, 1, 1>
47  : public P1LocalFiniteElement<D, R, 1>
48  {
49  public:
51  {}
52 
53  PkLocalFiniteElement(const unsigned int vertexmap[2])
54  {}
55  };
56 
63  template<class D, class R>
64  class PkLocalFiniteElement<D, R, 1, 0>
65  : public P0LocalFiniteElement<D, R, 1>
66  {
67  public:
69  : P0LocalFiniteElement<D,R,1>(GeometryType(0,1))
70  {}
71 
72  PkLocalFiniteElement(const unsigned int vertexmap[2])
73  {}
74  };
75 #endif
76 
82  template<class D, class R, int k>
83  class PkLocalFiniteElement<D, R, 1, k>
84  : public Pk1DLocalFiniteElement<D, R, k>
85  {
86  public:
88  {}
89 
90  PkLocalFiniteElement(const unsigned int vertexmap[2]) :
91  Pk1DLocalFiniteElement<D, R, k>(vertexmap)
92  {}
93  };
94 
101  template<class D, class R, int k>
102  class PkLocalFiniteElement<D, R, 2, k>
103  : public Pk2DLocalFiniteElement<D, R, k>
104  {
105  public:
107  {}
108 
109  PkLocalFiniteElement(const unsigned int vertexmap[3]) :
110  Pk2DLocalFiniteElement<D, R, k>(vertexmap)
111  {}
112  };
113 
120  template<class D, class R, int k>
121  class PkLocalFiniteElement<D, R, 3, k>
122  : public Pk3DLocalFiniteElement<D, R, k>
123  {
124  public:
126  {}
127 
128  PkLocalFiniteElement(const unsigned int vertexmap[4]) :
129  Pk3DLocalFiniteElement<D, R, k>(vertexmap)
130  {}
131  };
132 
133 }
134 
135 #endif
PkLocalFiniteElement(const unsigned int vertexmap[k+1])
Definition: pk.hh:36
PkLocalFiniteElement(const unsigned int vertexmap[4])
Definition: pk.hh:128
Definition: pk2d.hh:22
PkLocalFiniteElement()
Definition: pk.hh:106
The local p0 finite element on all types of reference elements.
Definition: p0.hh:22
PkLocalFiniteElement(const unsigned int vertexmap[2])
Definition: pk.hh:90
Definition: pk1d.hh:22
PkLocalFiniteElement()
Definition: pk.hh:87
Definition: brezzidouglasmarini1cube2dlocalbasis.hh:14
Definition: pk3d.hh:19
The local p1 finite element on simplices.
Definition: p1.hh:22
PkLocalFiniteElement()
Definition: pk.hh:27
PkLocalFiniteElement(const unsigned int vertexmap[3])
Definition: pk.hh:109
PkLocalFiniteElement()
Definition: pk.hh:125
General Lagrange finite element with arbitrary dimension and polynomial order.
Definition: pk.hh:24