DUNE PDELab (2.8)

global.hh
1// -*- tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=8 sw=2 sts=2:
3
4#ifndef DUNE_PDELAB_FINITEELEMENTMAP_GLOBAL_HH
5#define DUNE_PDELAB_FINITEELEMENTMAP_GLOBAL_HH
6
7#include <dune/pdelab/finiteelementmap/finiteelementmap.hh>
8
9namespace Dune {
10 namespace PDELab {
11
14
18 template<class Factory>
20 {
21 Factory& factory;
22
23 public:
25
27
37 GeometryFiniteElementMap(Factory& factory_) : factory(factory_) {}
38
40
46 template<class Element>
47 typename Traits::FiniteElementType find(const Element& e) const {
48 return factory.make(e.geometry());
49 }
50 };
51
54
60 template<class FEFactory, class VOFactory>
62 {
63 FEFactory& feFactory;
64 const VOFactory& voFactory;
65
66 public:
68
70
82 const VOFactory & voFactory_) :
83 feFactory(feFactory_), voFactory(voFactory_)
84 {}
85
87
93 template<class Element>
94 typename Traits::FiniteElementType find(const Element& e) const {
95 return feFactory.make(e.geometry(), voFactory.make(e));
96 }
97 };
98
99 } // namespace PDELab
100} // namespace Dune
101
102#endif // DUNE_PDELAB_FINITEELEMENTMAP_GLOBAL_HH
Generic finite element map for global finite elements created with a geometry.
Definition: global.hh:20
Traits::FiniteElementType find(const Element &e) const
Return finite element for the given entity.
Definition: global.hh:47
GeometryFiniteElementMap(Factory &factory_)
construct GeometryFiniteElementMap
Definition: global.hh:37
Generic finite element map for global finite elements created with a geometry and a vertex ordering.
Definition: global.hh:62
Traits::FiniteElementType find(const Element &e) const
Return finite element for the given entity.
Definition: global.hh:94
GeometryVertexOrderFiniteElementMap(FEFactory &feFactory_, const VOFactory &voFactory_)
construct GeometryFiniteElementMap
Definition: global.hh:81
Dune namespace.
Definition: alignedallocator.hh:11
collect types exported by a finite element map
Definition: finiteelementmap.hh:28
T FiniteElementType
Type of finite element from local functions.
Definition: finiteelementmap.hh:30
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 22, 23:30, 2024)