Skip to content
Snippets Groups Projects

Reflect removal of deprecated Node::CHILDREN in TypeTree

Merged Christoph Grüninger requested to merge feature/remove-deprecated-2.9 into master
1 unresolved thread

This is seldom case of forward-dependency in Dune.

See staging/dune-typetree!130 (merged)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
76 76
77 77 template< class T >
78 78 struct DimRange< T, std::enable_if_t< std::is_same< typename T::NodeTag, Dune::TypeTree::PowerNodeTag >::value > >
79 : public std::integral_constant< std::size_t, sum< int >( T::CHILDREN * DimRange< typename T::ChildType >::value ) >
  • Another remark is that dune-typetree has moved to allow dynamic ranges too. If a dynamic node comes, it won't be represented by this "concept" dispatch. IMO this class took much responsibility over classes in other modules...

    This seems to be used in two places:

    • In dune-grid to get the dimension range of some field vector.
    • In dune-functions to get the degree of a tree node.

    I would propose to fix the code in dune-functions to get the degree directly from the node instead of using the "concept" dispatch from this line, and remove this code from here. @carsten.graeser does that make sense to you?

    If we want to maximize backwards compatibility we should accept the change propose by @gruenich and deprecate this particular instantiation. A caveat though is that this code might be instantiated within python generation context where the warning might not be visible.

  • Please register or sign in to reply
  • Santiago Ospina De Los Ríos approved this merge request

    approved this merge request

  • added 3 commits

    Compare with previous version

  • mentioned in commit 9b924939

  • Please register or sign in to reply
    Loading