WIP: Add dynamic power nodes
What does this MR do?
Adds a dynamic power node including most of the algorithms that traverse and transform trees. The main reason to have this features is because they can be useful for PDELab in order to have dynamic power grid function spaces. The particular case I am trying right now is for several components that are only known at run time.
Notice that with dynamic I refer to dynamic storage of them, defined at construction of the node. Afterwards, the tree is immutable as its static counterparts.
Accumulate algorithms now use the hybrid tree path because it doesn't make sense to provide static paths to dynamic trees.
The tree info now is useful if one knows a priori that the complete tree is static, hence I added free functions for the node and leaf count that return constant expression integers when possible.
Is there something that needs to be double checked?
- The tests are not passing because of a const expresssions for older compilers. I tried with the hybrid
ifElsebut it didn't work. Any suggestion?
- Are the test enough?
- Can the change from static path to hybrid path in the accumulate algorithm affect someone? I hope no because it is ignored in most of the cases anyways.
Can this MR be accepted?
- Added test
- Pipeline passing
Added entry to