Dune Core Modules (2.8.0)

localderivativetraits.hh
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
4#define DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
5
6
7#include <dune/functions/common/defaultderivativetraits.hh>
8
9
10namespace Dune {
11namespace Functions {
12
13
26template<class EntitySet, template<class> class DerivativeTraits=DefaultDerivativeTraits>
28{
29 using LocalDomain = typename EntitySet::LocalCoordinate;
30 using Domain = typename EntitySet::GlobalCoordinate;
31
32 template<class Signature>
33 struct Traits
34 {
35 typedef InvalidRange Range;
36 };
37
38 template<class R>
39 struct Traits<R(LocalDomain)>
40 {
41 using Range = typename DerivativeTraits<R(Domain)>::Range;
42 };
43};
44
45
46}} // namespace Dune::Functions
47
48#endif // DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
Dummy range class to be used if no proper type is available.
Definition: defaultderivativetraits.hh:23
Dune namespace.
Definition: alignedallocator.hh:11
Derivative traits for local functions.
Definition: localderivativetraits.hh:28
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 22, 23:30, 2024)