DUNE PDELab (2.7)

opbfem.hh
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
8
9#include<dune/pdelab/finiteelementmap/finiteelementmap.hh>
11
12namespace 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 {
21 typedef PB::BasisTraits<basisType> BasisTraits;
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 {
37 if (gt == GeometryType(bt,d))
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
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:280
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:101
Definition of the DUNE_DEPRECATED macro for the case that config.h is not available.
#define DUNE_NO_DEPRECATED_END
Ignore deprecation warnings (end)
Definition: deprecated.hh:198
#define DUNE_NO_DEPRECATED_BEGIN
Ignore deprecation warnings (start)
Definition: deprecated.hh:192
bool gt(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
test if first greater than second
Definition: float_cmp.cc:156
This file defines polynomial basis functions on the reference element in a generic way.
Dune namespace.
Definition: alignedallocator.hh:14
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)