dune-localfunctions  2.4.1
q2.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_Q2_LOCALFINITEELEMENT_HH
4 #define DUNE_Q2_LOCALFINITEELEMENT_HH
5 
6 #include <dune/common/typetraits.hh>
7 #include <dune/geometry/type.hh>
8 
11 #include "pk.hh"
12 #include "qk.hh"
13 
14 namespace Dune
15 {
17 
22  template<class Geometry, class RF>
25  typename conditional<Geometry::mydimension == 1,
26  PkLocalFiniteElement<typename Geometry::ctype, RF, 1, 2>,
27  QkLocalFiniteElement<typename Geometry::ctype, RF, Geometry::mydimension, 2> >::type,
28  Geometry>
29  {
30  typedef typename conditional<Geometry::mydimension == 1,
34 
35  static const LFE lfe;
36 
37  public:
39  Q2FiniteElementFactory() : Base(lfe) {}
40  };
41 
42  template<class Geometry, class RF>
43  const typename Q2FiniteElementFactory<Geometry, RF>::LFE
45 }
46 
47 #endif
General Lagrange finite element for cubes with arbitrary dimension and polynomial order...
Definition: qk.hh:22
Factory for ScalarLocalToGlobalFiniteElementAdaptor objects.
Definition: localtoglobaladaptors.hh:244
Factory for global-valued Q23D elements.
Definition: q2.hh:23
Q2FiniteElementFactory()
default constructor
Definition: q2.hh:39
Definition: brezzidouglasmarini1cube2dlocalbasis.hh:14
General Lagrange finite element with arbitrary dimension and polynomial order.
Definition: pk.hh:24