dune-localfunctions  2.9.0
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 // SPDX-FileCopyrightInfo: Copyright (C) DUNE Project contributors, see file LICENSE.md in module root
4 // SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception
5 #ifndef DUNE_Q2_LOCALFINITEELEMENT_HH
6 #define DUNE_Q2_LOCALFINITEELEMENT_HH
7 
8 #include <dune/common/typetraits.hh>
9 #include <dune/geometry/type.hh>
10 
13 
16 
17 namespace Dune
18 {
20 
25  template<class Geometry, class RF>
28  typename std::conditional<Geometry::mydimension == 1,
29  LagrangeSimplexLocalFiniteElement<typename Geometry::ctype, RF, 1, 2>,
30  LagrangeCubeLocalFiniteElement<typename Geometry::ctype, RF, Geometry::mydimension, 2> >::type,
31  Geometry>
32  {
33  typedef typename std::conditional<Geometry::mydimension == 1,
37 
38  static const LFE lfe;
39 
40  public:
43  };
44 
45  template<class Geometry, class RF>
46  const typename Q2FiniteElementFactory<Geometry, RF>::LFE
47  Q2FiniteElementFactory<Geometry, RF>::lfe;
48 }
49 
50 #endif
Definition: bdfmcube.hh:18
Factory for ScalarLocalToGlobalFiniteElementAdaptor objects.
Definition: localtoglobaladaptors.hh:244
Lagrange finite element for cubes with arbitrary compile-time dimension and polynomial order.
Definition: lagrangecube.hh:711
Lagrange finite element for simplices with arbitrary compile-time dimension and polynomial order.
Definition: lagrangesimplex.hh:838
Factory for global-valued Q23D elements.
Definition: q2.hh:32
Q2FiniteElementFactory()
default constructor
Definition: q2.hh:42