Function t8_element_count_leaves_from_root
Defined in File t8_scheme.h
Function Documentation
-
t8_gloidx_t t8_element_count_leaves_from_root(const t8_scheme_c *scheme, const t8_eclass_t tree_class, const int level)
Count how many leaf descendants of a given uniform level the root element will produce.
This is a convenience function, and can be implemented via t8_element_count_leaves.
- Parameters:
scheme – [in] The scheme of the forest.
tree_class – [in] The eclass of tree the elements are part of.
level – [in] A refinement level.
- Returns:
The value of t8_element_count_leaves if the input element is the root (level 0) element.