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: 4 -*-
2 // vi: set et ts=4 sw=4 sts=4:
3 
4 #ifndef DUNE_PDELAB_FINITEELEMENTMAP_OPBFEM_HH
5 #define DUNE_PDELAB_FINITEELEMENTMAP_OPBFEM_HH
6 
9 
10 namespace Dune {
11  namespace PDELab {
12 
15  template<class D, class R, int k, int d, Dune::GeometryType::BasicType bt, typename ComputationFieldType=R, PB::BasisType basisType = PB::BasisType::Pk>
17  : public Dune::PDELab::SimpleLocalFiniteElementMap< Dune::OPBLocalFiniteElement<D,R,k,d,bt,ComputationFieldType,basisType> >
18  {
20  public:
21 
22  bool fixedSize() const
23  {
24  return true;
25  }
26 
27  bool hasDOFs(int codim) const
28  {
29  return codim == 0;
30  }
31 
32  std::size_t size(GeometryType gt) const
33  {
34  if (gt == GeometryType(bt,d))
35  return BasisTraits::template Size<k,d>::value;
36  else
37  return 0;
38  }
39 
40  std::size_t maxLocalSize() const
41  {
42  return BasisTraits::template Size<k,d>::value;
43  }
44 
45  };
46 
47  }
48 }
49 
50 #endif // DUNE_PDELAB_FINITEELEMENTMAP_OPBFEM_HH
std::size_t size(GeometryType gt) const
Definition: opbfem.hh:32
Definition: l2orthonormal.hh:261
bool fixedSize() const
Definition: opbfem.hh:22
For backward compatibility – Do not use this!
Definition: adaptivity.hh:27
static const unsigned int value
Definition: gridfunctionspace/tags.hh:139
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:95
bool hasDOFs(int codim) const
Definition: opbfem.hh:27
This file defines polynomial basis functions on the reference element in a generic way...
std::size_t maxLocalSize() const
Definition: opbfem.hh:40