Loading...
Searching...
No Matches
localderivativetraits.hh
Go to the documentation of this file.
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
// SPDX-FileCopyrightText: Copyright © DUNE Project contributors, see file AUTHORS.md
// SPDX-License-Identifier: LicenseRef-GPL-2.0-only-with-DUNE-exception OR LGPL-3.0-or-later
#ifndef DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
#define DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
#include <dune/functions/common/defaultderivativetraits.hh>
namespace Dune {
namespace Functions {
template<class EntitySet, template<class> class DerivativeTraits=DefaultDerivativeTraits>
struct LocalDerivativeTraits
{
using LocalDomain = typename EntitySet::LocalCoordinate;
using Domain = typename EntitySet::GlobalCoordinate;
template<class Signature>
struct Traits
{
typedef InvalidRange Range;
};
template<class R>
struct Traits<R(LocalDomain)>
{
using Range = typename DerivativeTraits<R(Domain)>::Range;
};
};
}} // namespace Dune::Functions
#endif // DUNE_FUNCTIONS_GRIDFUNCTIONS_LOCALDERIVATIVE_TRAITS_HH
defaultderivativetraits.hh
Dune
Definition monomialset.hh:19
Dune::Functions
Definition monomialset.hh:19
Dune::Functions::InvalidRange
Dummy range class to be used if no proper type is available.
Definition defaultderivativetraits.hh:27
Dune::Functions::DefaultDerivativeTraits
Default implementation for derivative traits.
Definition defaultderivativetraits.hh:41
Dune::Functions::LocalDerivativeTraits
Derivative traits for local functions.
Definition localderivativetraits.hh:32
Dune::Functions::LocalDerivativeTraits::Domain
typename EntitySet::GlobalCoordinate Domain
Definition localderivativetraits.hh:34
Dune::Functions::LocalDerivativeTraits::LocalDomain
typename EntitySet::LocalCoordinate LocalDomain
Definition localderivativetraits.hh:33
Dune::Functions::LocalDerivativeTraits::Traits
Definition localderivativetraits.hh:38
Dune::Functions::LocalDerivativeTraits::Traits::Range
InvalidRange Range
Definition localderivativetraits.hh:39
Dune::Functions::LocalDerivativeTraits::Traits< R(LocalDomain)>::Range
typename DerivativeTraits< R(Domain)>::Range Range
Definition localderivativetraits.hh:45