Function t8_element_get_num_siblings

Function Documentation

int t8_element_get_num_siblings(const t8_scheme_c *scheme, const t8_eclass_t tree_class, const t8_element_t *element)

Compute the number of siblings of an element.

That is the number of Children of its parent.

Parameters:
  • scheme[in] The scheme of the forest.

  • tree_class[in] The eclass of tree the elements are part of.

  • element[in] The element.

Returns:

The number of siblings of element. Note that this number is >= 1, since we count the element itself as a sibling.