DUNE PDELab (git)

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
4// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file AUTHORS.md
5// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception OR LGPL-3.0-or-later
6
7#ifndef DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
8#define DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
9
10
11#include <dune/functions/common/defaultderivativetraits.hh>
12
13
14namespace Dune {
15namespace Functions {
16
17
30template<class EntitySet, template<class> class DerivativeTraits=DefaultDerivativeTraits>
32{
33 using LocalDomain = typename EntitySet::LocalCoordinate;
34 using Domain = typename EntitySet::GlobalCoordinate;
35
36 template<class Signature>
37 struct Traits
38 {
39 typedef InvalidRange Range;
40 };
41
42 template<class R>
43 struct Traits<R(LocalDomain)>
44 {
45 using Range = typename DerivativeTraits<R(Domain)>::Range;
46 };
47};
48
49
50}} // namespace Dune::Functions
51
52#endif // DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
Dummy range class to be used if no proper type is available.
Definition: defaultderivativetraits.hh:27
Dune namespace.
Definition: alignedallocator.hh:13
Derivative traits for local functions.
Definition: localderivativetraits.hh:32
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 13, 23:29, 2024)