DUNE PDELab (git)

rt0cube2dfem.hh
1// -*- tab-width: 4; indent-tabs-mode: nil -*-
2#ifndef DUNE_PDELAB_FINITEELEMENTMAP_RT0CUBE2DFEM_HH
3#define DUNE_PDELAB_FINITEELEMENTMAP_RT0CUBE2DFEM_HH
4
5#include<vector>
6#include<dune/localfunctions/raviartthomas/raviartthomas0cube2d.hh>
7#include"finiteelementmap.hh"
8
9namespace Dune {
10 namespace PDELab {
11
14 template<typename GV, typename D, typename R>
17 GV,
18 Dune::RT0Cube2DLocalFiniteElement<D,R>,
19 RT0Cube2DLocalFiniteElementMap<GV,D,R>,
20 16>
21 {
23
24 public:
27
31 GV,
34 16>(gv)
35 {}
36
37 static constexpr bool fixedSize()
38 {
39 return true;
40 }
41
42 static constexpr bool hasDOFs(int codim)
43 {
44 return codim == 1;
45 }
46
47 static constexpr std::size_t size(GeometryType gt)
48 {
49 return gt == GeometryTypes::line ? 1 : 0;
50 }
51
52 static constexpr std::size_t maxLocalSize()
53 {
54 return 4;
55 }
56
57 };
58 } // end namespace PDELab
59} // end namespace Dune
60
61#endif // DUNE_PDELAB_FINITEELEMENTMAP_RT0CUBE2DFEM_HH
Definition: rt0cube2dfem.hh:21
LocalFiniteElementMapTraits< FE > Traits
export type of the signature
Definition: rt0cube2dfem.hh:26
RT0Cube2DLocalFiniteElementMap(const GV &gv)
Use when Imp has a standard constructor.
Definition: rt0cube2dfem.hh:29
Definition: finiteelementmap.hh:223
Zero order Raviart-Thomas shape functions on rectangles.
Definition: raviartthomas0cube2d.hh:25
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
collect types exported by a finite element map
Definition: finiteelementmap.hh:38
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 23, 23:29, 2024)