Commit 55a4c7e5 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

extract signature directly from gridfunction

parent 6eb075b8
...@@ -33,7 +33,7 @@ namespace Dune ...@@ -33,7 +33,7 @@ namespace Dune
template< class GF > template< class GF >
struct DimRange struct DimRange
{ {
using SigTraits = Functions::SignatureTraits<typename GF::Signature>; using SigTraits = Functions::SignatureTraits<GF>;
using Range = typename SigTraits::RawRange; using Range = typename SigTraits::RawRange;
static const int value = Range::size(); static const int value = Range::size();
}; };
...@@ -44,7 +44,7 @@ namespace Dune ...@@ -44,7 +44,7 @@ namespace Dune
using EntitySet = typename GF::EntitySet; using EntitySet = typename GF::EntitySet;
using LocalContext = typename EntitySet::Element; using LocalContext = typename EntitySet::Element;
using Range = typename Functions::SignatureTraits<typename GF::Signature>::Range; using Range = typename Functions::SignatureTraits<GF>::Range;
using LocalSignature = Range(typename EntitySet::LocalCoordinate); using LocalSignature = Range(typename EntitySet::LocalCoordinate);
static const bool value = Functions::Concept::isDifferentiableLocalFunction<LF,LocalSignature,LocalContext,Functions::LocalDerivativeTraits<EntitySet>::template Traits>(); static const bool value = Functions::Concept::isDifferentiableLocalFunction<LF,LocalSignature,LocalContext,Functions::LocalDerivativeTraits<EntitySet>::template Traits>();
...@@ -62,7 +62,7 @@ namespace Dune ...@@ -62,7 +62,7 @@ namespace Dune
using HostGrid = GridOf_t<GF>; using HostGrid = GridOf_t<GF>;
using GridFunction = GF; using GridFunction = GF;
using LocalFunction = std::decay_t<decltype(localFunction(std::declval<GF>()))>; using LocalFunction = std::decay_t<decltype(localFunction(std::declval<GF const&>()))>;
static const bool differentiableLocalFunction = DifferentiableLocalFunction<GF, LocalFunction>::value; static const bool differentiableLocalFunction = DifferentiableLocalFunction<GF, LocalFunction>::value;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment