5#ifndef DUNE_DISABLE_DEPRECATION_WARNING_PQ22D 
    6#warning This header is deprecated and will be removed after 2.11. 
    9#ifndef DUNE_PQ22DLOCALFINITEELEMENT_HH 
   10#define DUNE_PQ22DLOCALFINITEELEMENT_HH 
   14#include <dune/localfunctions/common/localfiniteelementvariant.hh> 
   16#include <dune/localfunctions/lagrange/lagrangesimplex.hh> 
   17#include <dune/localfunctions/lagrange/lagrangecube.hh> 
   21  template<
class D, 
class R>
 
   23  [[deprecated(
"Use LocalFiniteElementVariant or the virtual interface directly. This will be removed after release 2.11.")]]
 
   24  PQ22DLocalFiniteElement
 
   26    using LFEVariant = LocalFiniteElementVariant<LagrangeSimplexLocalFiniteElement<D,R,2,2>,
 
   27                                                 LagrangeCubeLocalFiniteElement<D,R,2,2> >;
 
   29    using Traits = 
typename LFEVariant::Traits;
 
   31    PQ22DLocalFiniteElement ( 
const GeometryType &
gt )
 
   33      if ( 
gt.isTriangle() )
 
   34        lfeVariant_ = LagrangeSimplexLocalFiniteElement<D,R,2,2>();
 
   35      else if ( 
gt.isQuadrilateral() )
 
   36        lfeVariant_ = LagrangeCubeLocalFiniteElement<D,R,2,2>();
 
   39    PQ22DLocalFiniteElement ( 
const GeometryType &
gt, 
const std::vector<unsigned int> vertexmap )
 
   41      if ( 
gt.isTriangle() )
 
   42        lfeVariant_ = LagrangeSimplexLocalFiniteElement<D,R,2,2>(vertexmap);
 
   43      else if ( 
gt.isQuadrilateral() )
 
   44        lfeVariant_ = LagrangeCubeLocalFiniteElement<D,R,2,2>();
 
   47    const typename Traits::LocalBasisType& localBasis ()
 const 
   49      return lfeVariant_.localBasis();
 
   52    const typename Traits::LocalCoefficientsType& localCoefficients ()
 const 
   54      return lfeVariant_.localCoefficients();
 
   57    const typename Traits::LocalInterpolationType& localInterpolation ()
 const 
   59      return lfeVariant_.localInterpolation();
 
   63    unsigned int size ()
 const 
   65      return lfeVariant_.size();
 
   70      return lfeVariant_.type();
 
   75    LFEVariant lfeVariant_;
 
GeometryType
Type representing VTK's entity geometry types.
Definition: common.hh:132
 
Implements a matrix constructed from a given type representing a field and compile-time given number ...
 
bool gt(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
test if first greater than second
Definition: float_cmp.cc:158
 
Dune namespace.
Definition: alignedallocator.hh:13
 
constexpr std::integral_constant< std::size_t, sizeof...(II)> size(std::integer_sequence< T, II... >)
Return the size of the sequence.
Definition: integersequence.hh:75