Function t8_element_get_ancestor_id

Function Documentation

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

Compute the ancestor id of an element, that is the child id at a given level.

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

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

  • element[in] This must be a valid element.

  • level[in] A refinement level. Must satisfy level < element.level

Returns:

The child_id of element in regard to its level ancestor.