Skip to content

Add dynamic power node

Simon Praetorius requested to merge feature/dynamic_power_node into master

Summary

Introduce a dynamic power node with runtime degree.

Major difference to other nodes are:

  • No default constructor. Needs the size information as runtime argument.
  • No CHILDREN static member. This cannot have a meaningful value
  • degree() is non-static and returns a std::size_t
  • Node is power-node in the sense of isPower == true: all children have the same type.
  • Node is dynamic power-node in the sense of the DynamicPowerNodeTag. This has no direct (inheritance) relation to PowerNodeTag.

See dune-functions!285 (merged) for an example implementation of a dynamic power basis node in dune-functions.

Notes

Edited by Simon Praetorius

Merge request reports