DUNE PDELab (git)

rannacherturekfem.hh
1// -*- tab-width: 4; indent-tabs-mode: nil -*-
2#ifndef DUNE_PDELAB_FINITEELEMENTMAP_RANNACHERTUREKFEM_HH
3#define DUNE_PDELAB_FINITEELEMENTMAP_RANNACHERTUREKFEM_HH
4
6#include"finiteelementmap.hh"
7
8namespace Dune {
9 namespace PDELab {
10
13 template<class D, class R, std::size_t d>
15 : public SimpleLocalFiniteElementMap<RannacherTurekLocalFiniteElement<D,R,d>,d>
16 {
17 public:
18
19 static constexpr bool fixedSize()
20 {
21 return true;
22 }
23
24 static constexpr bool hasDOFs(int codim)
25 {
26 return codim == 1;
27 }
28
29 static constexpr std::size_t size(GeometryType gt)
30 {
31 return gt == GeometryTypes::line ? 1 : 0;
32 }
33
34 static constexpr std::size_t maxLocalSize()
35 {
36 return 4;
37 }
38
39 };
40 } // namespace PDELab
41} // namespace Dune
42
43#endif // DUNE_PDELAB_FINITEELEMENTMAP_RANNACHERTUREKFEM_HH
Unique label for each type of entities that can occur in DUNE grids.
Definition: type.hh:114
Definition: rannacherturekfem.hh:16
simple implementation where all entities have the same finite element
Definition: finiteelementmap.hh:101
bool gt(const T &first, const T &second, typename EpsilonType< T >::Type epsilon)
test if first greater than second
Definition: float_cmp.cc:158
constexpr GeometryType line
GeometryType representing a line.
Definition: type.hh:498
Dune namespace.
Definition: alignedallocator.hh:13
Convenience header that includes all available Rannacher-Turek LocalFiniteElements.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 23, 23:29, 2024)