dune-pdelab  2.4.1
opbfem.hh
Go to the documentation of this file.
1 // -*- tab-width: 4; indent-tabs-mode: nil -*-
2 #ifndef DUNE_PDELAB_OPBFEM_HH
3 #define DUNE_PDELAB_OPBFEM_HH
4 
6 #include"l2orthonormal.hh"
7 
8 namespace Dune {
9  namespace PDELab {
10 
13  template<class D, class R, int k, int d, Dune::GeometryType::BasicType bt, typename ComputationFieldType=R, PB::BasisType basisType = PB::BasisType::Pk>
15  : public Dune::PDELab::SimpleLocalFiniteElementMap< Dune::OPBLocalFiniteElement<D,R,k,d,bt,ComputationFieldType,basisType> >
16  {
18  public:
19 
20  bool fixedSize() const
21  {
22  return true;
23  }
24 
25  bool hasDOFs(int codim) const
26  {
27  return codim == 0;
28  }
29 
30  std::size_t size(GeometryType gt) const
31  {
32  if (gt == GeometryType(bt,d))
33  return BasisTraits::template Size<k,d>::value;
34  else
35  return 0;
36  }
37 
38  std::size_t maxLocalSize() const
39  {
40  return BasisTraits::template Size<k,d>::value;
41  }
42 
43  };
44 
45  }
46 }
47 
48 #endif
static const unsigned int value
Definition: gridfunctionspace/tags.hh:177
This file defines polynomial basis functions on the reference element in a generic way...
Definition: adaptivity.hh:27
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:107
std::size_t maxLocalSize() const
Definition: opbfem.hh:38
std::size_t size(GeometryType gt) const
Definition: opbfem.hh:30
bool hasDOFs(int codim) const
Definition: opbfem.hh:25
bool fixedSize() const
Definition: opbfem.hh:20
Definition: l2orthonormal.hh:258