dune-localfunctions  2.1.1
pk.hh
Go to the documentation of this file.
00001 // -*- tab-width: 4; indent-tabs-mode: nil -*-
00002 /* vim: set ai expandtab sw=4 ts=4: */
00003 #ifndef DUNE_PK_LOCALFINITEELEMENT_HH
00004 #define DUNE_PK_LOCALFINITEELEMENT_HH
00005 
00006 #include "p1.hh"
00007 #include "pk2d.hh"
00008 #include "pk3d.hh"
00009 
00010 namespace Dune
00011 {
00012 
00020     template<class D, class R, int d, int k>
00021     class PkLocalFiniteElement
00022     {
00023         public:
00024             PkLocalFiniteElement()
00025             {}
00026 
00033             PkLocalFiniteElement(const unsigned int vertexmap[k+1])
00034             {}
00035     };
00036 
00042     template<class D, class R>
00043     class PkLocalFiniteElement<D, R, 1, 1>
00044         : public P1LocalFiniteElement<D, R, 1>
00045     {
00046         public:
00047             PkLocalFiniteElement()
00048             {}
00049 
00050             PkLocalFiniteElement(const unsigned int vertexmap[2])
00051             {}
00052     };
00053 
00060     template<class D, class R, int k>
00061     class PkLocalFiniteElement<D, R, 2, k>
00062         : public Pk2DLocalFiniteElement<D, R, k>
00063     {
00064         public:
00065             PkLocalFiniteElement()
00066             {}
00067 
00068             PkLocalFiniteElement(const unsigned int vertexmap[3]):
00069                 Pk2DLocalFiniteElement<D, R, k>(vertexmap)
00070             {}
00071     };
00072 
00079     template<class D, class R, int k>
00080     class PkLocalFiniteElement<D, R, 3, k>
00081         : public Pk3DLocalFiniteElement<D, R, k>
00082     {
00083         public:
00084             PkLocalFiniteElement()
00085             {}
00086 
00087             PkLocalFiniteElement(const unsigned int vertexmap[4]):
00088                 Pk3DLocalFiniteElement<D, R, k>(vertexmap)
00089             {}
00090     };
00091 
00092 }
00093 
00094 #endif