dune-pdelab  2.5-dev
opbfem.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 
4 #ifndef DUNE_PDELAB_FINITEELEMENTMAP_OPBFEM_HH
5 #define DUNE_PDELAB_FINITEELEMENTMAP_OPBFEM_HH
6 
7 #include <dune/common/deprecated.hh>
8 
11 
12 namespace Dune {
13  namespace PDELab {
14 
17  template<class D, class R, int k, int d, Dune::GeometryType::BasicType bt, typename ComputationFieldType=R, PB::BasisType basisType = PB::BasisType::Pk>
19  : public Dune::PDELab::SimpleLocalFiniteElementMap<Dune::OPBLocalFiniteElement<D,R,k,d,bt,ComputationFieldType,basisType>,d>
20  {
22  public:
23 
24  static constexpr bool fixedSize()
25  {
26  return true;
27  }
28 
29  static constexpr bool hasDOFs(int codim)
30  {
31  return codim == 0;
32  }
33 
34  static constexpr std::size_t size(GeometryType gt)
35  {
36 DUNE_NO_DEPRECATED_BEGIN
37  if (gt == GeometryType(bt,d))
38 DUNE_NO_DEPRECATED_END
39  return BasisTraits::template Size<k,d>::value;
40  else
41  return 0;
42  }
43 
44  static constexpr std::size_t maxLocalSize()
45  {
46  return BasisTraits::template Size<k,d>::value;
47  }
48 
49  };
50 
51  }
52 }
53 
54 #endif // DUNE_PDELAB_FINITEELEMENTMAP_OPBFEM_HH
This file defines polynomial basis functions on the reference element in a generic way...
static const unsigned int value
Definition: gridfunctionspace/tags.hh:139
static constexpr std::size_t size(GeometryType gt)
Definition: opbfem.hh:34
static constexpr std::size_t maxLocalSize()
Definition: opbfem.hh:44
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
static constexpr bool hasDOFs(int codim)
Definition: opbfem.hh:29
static constexpr bool fixedSize()
Definition: opbfem.hh:24
Definition: l2orthonormal.hh:158
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:111