dune-pdelab 2.7-git
Loading...
Searching...
No Matches
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
12
13namespace Dune {
14 namespace PDELab {
15
18 template<class D, class R, int k, int d, Dune::GeometryType::BasicType bt, typename ComputationFieldType=R, PB::BasisType basisType = PB::BasisType::Pk>
20 : public Dune::PDELab::SimpleLocalFiniteElementMap<Dune::OPBLocalFiniteElement<D,R,k,d,bt,ComputationFieldType,basisType>,d>
21 {
23 public:
24
25 static constexpr bool fixedSize()
26 {
27 return true;
28 }
29
30 static constexpr bool hasDOFs(int codim)
31 {
32 return codim == 0;
33 }
34
35 static constexpr std::size_t size(GeometryType gt)
36 {
37 auto geometryType = geometryTypeFromBasicType(bt, d);
38 if (gt == geometryType)
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.
For backward compatibility – Do not use this!
Definition: adaptivity.hh:28
Dune::GeometryType geometryTypeFromBasicType(Dune::GeometryType::BasicType basicType, int dim)
Definition: topologyutility.hh:48
Definition: l2orthonormal.hh:160
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:101
static constexpr bool hasDOFs(int codim)
Definition: opbfem.hh:30
static constexpr std::size_t maxLocalSize()
Definition: opbfem.hh:44
static constexpr bool fixedSize()
Definition: opbfem.hh:25
static constexpr std::size_t size(GeometryType gt)
Definition: opbfem.hh:35