dune-pdelab  2.4-dev
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  std::size_t size(GeometryType gt) const
26  {
27  if (gt == GeometryType(bt,d))
28  return BasisTraits::template Size<k,d>::value;
29  else
30  return 0;
31  }
32 
33  std::size_t maxLocalSize() const
34  {
35  return BasisTraits::template Size<k,d>::value;
36  }
37 
38  };
39 
40  }
41 }
42 
43 #endif
Definition: l2orthonormal.hh:258
bool fixedSize() const
Definition: opbfem.hh:20
static const unsigned int value
Definition: gridfunctionspace/tags.hh:175
std::size_t size(GeometryType gt) const
Definition: opbfem.hh:25
std::size_t maxLocalSize() const
Definition: opbfem.hh:33
Definition: adaptivity.hh:27
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:107
This file defines polynomial basis functions on the reference element in a generic way...