DUNE-ACFEM (unstable)

linearfunctional.hh
1#ifndef __DUNE_ACFEM_OPERATORS_FUNCTIONALS_LINEARFUNCTIONAL_HH__
2#define __DUNE_ACFEM_OPERATORS_FUNCTIONALS_LINEARFUNCTIONAL_HH__
3
4namespace Dune {
5
6 namespace ACFem {
7
8 namespace LinearFunctional {
9
11 template<class DiscreteFunctionSpace>
13 {
14 public:
15 using DiscreteFunctionSpaceType = DiscreteFunctionSpace;
16 using FunctionSpaceType = typename DiscreteFunctionSpaceType::FunctionSpaceType;
17 using GridPartType = typename DiscreteFunctionSpaceType::GridPartType;
18 using RangeFieldType = typename FunctionSpaceType::RangeFieldType;
19 };
20
21 template<class DiscreteFunctionSpace>
22 class LinearFunctionalBase
23 : public LinearFunctional<DiscreteFunctionSpace>
24 {
26 public:
27 using typename BaseType::DiscreteFunctionSpaceType;
28
29 LinearFunctionalBase(const DiscreteFunctionSpaceType& space)
30 : space_(space)
31 {}
32
33 const DiscreteFunctionSpaceType& space() const
34 {
35 return space_;
36 }
37
38 protected:
39 const DiscreteFunctionSpaceType& space_;
40 };
41
42 }
43
44 } // ACFem::
45
46} // Dune::
47
48#endif // __DUNE_ACFEM_OPERATORS_FUNCTIONALS_LINEARFUNCTIONAL_HH__
Light-weight base class for all linear functionals.
Definition: linearfunctional.hh:13
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Jul 15, 22:36, 2024)