// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- // vi: set et ts=4 sw=2 sts=2: // SPDX-FileCopyrightInfo: Copyright © DUNE Project contributors, see file LICENSE.md in module root // SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception #ifndef DUNE_DISABLE_DEPRECATION_WARNING_PQ22D #warning This header is deprecated and will be removed after 2.11. #endif #ifndef DUNE_PQ22DLOCALFINITEELEMENT_HH #define DUNE_PQ22DLOCALFINITEELEMENT_HH #include #include #include #include namespace Dune { template class [[deprecated("Use LocalFiniteElementVariant or the virtual interface directly. This will be removed after release 2.11.")]] PQ22DLocalFiniteElement { using LFEVariant = LocalFiniteElementVariant, LagrangeCubeLocalFiniteElement >; public: using Traits = typename LFEVariant::Traits; PQ22DLocalFiniteElement ( const GeometryType > ) { if ( gt.isTriangle() ) lfeVariant_ = LagrangeSimplexLocalFiniteElement(); else if ( gt.isQuadrilateral() ) lfeVariant_ = LagrangeCubeLocalFiniteElement(); } PQ22DLocalFiniteElement ( const GeometryType >, const std::vector vertexmap ) { if ( gt.isTriangle() ) lfeVariant_ = LagrangeSimplexLocalFiniteElement(vertexmap); else if ( gt.isQuadrilateral() ) lfeVariant_ = LagrangeCubeLocalFiniteElement(); } const typename Traits::LocalBasisType& localBasis () const { return lfeVariant_.localBasis(); } const typename Traits::LocalCoefficientsType& localCoefficients () const { return lfeVariant_.localCoefficients(); } const typename Traits::LocalInterpolationType& localInterpolation () const { return lfeVariant_.localInterpolation(); } /** \brief Number of shape functions in this finite element */ unsigned int size () const { return lfeVariant_.size(); } GeometryType type () const { return lfeVariant_.type(); } private: LFEVariant lfeVariant_; }; } #endif