6 #include <dune/common/concept.hh> 8 #include <dune/functions/common/indexaccess.hh> 10 #include <amdis/common/Concepts.hpp> 26 template <
class Node,
class TreePath,
class Range,
28 decltype(
auto) operator()(
const Node& node,
const TreePath& treePath, Range&& y)
const 30 return Dune::Functions::resolveStaticMultiIndex(y, transformTreePath(treePath));
34 template <
class Node,
class TreePath,
class Range,
36 decltype(
auto) operator()(
const Node& node,
const TreePath& treePath, Range&& y)
const 38 return std::forward<Range>(y);
42 #if DUNE_VERSION_GT(DUNE_FUNCTIONS,2,6) 43 template <
class TreePath>
44 static TreePath
const& transformTreePath(TreePath
const& treePath)
51 template <
class TreePath>
52 static auto transformTreePath(TreePath
const& treePath)
54 return Tools::apply([](
auto... i) {
return Dune::makeTupleVector(i...); }, treePath._data);
Contains all classes needed for solving linear and non linear equation systems.
Definition: AdaptBase.hpp:6
constexpr bool HasIndexAccess
A Dune::Functions::HasIndexAccess type.
Definition: Concepts.hpp:158
A simple node to range map using the nested tree indices.
Definition: HierarchicNodeToRangeMap.hpp:23