Commit 0e8bf717 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

replace explicit child type deduction with global type-traits

parent 7c8f35cf
......@@ -39,9 +39,10 @@ namespace AMDiS
static_assert(static_size_v<typename LocalFct::Range> == 1,
"Viscosity must be of scalar type.");
using VelocityNode = typename Node::template Child<0>::type;
using VelocityCompNode = typename VelocityNode::template Child<0>::type;
using PressureNode = typename Node::template Child<1>::type;
using VelocityNode = Dune::TypeTree::Child<Node,0>;
using VelocityCompNode = Dune::TypeTree::Child<Node,0,0>;
using PressureNode = Dune::TypeTree::Child<Node,1>;
static_assert(VelocityNode::isPower && PressureNode::isLeaf, "");
using namespace Dune::Indices;
......
Markdown is supported
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