Function t8_element_get_parent
Defined in File t8_scheme.h
Function Documentation
-
void t8_element_get_parent(const t8_scheme_c *scheme, const t8_eclass_t tree_class, const t8_element_t *element, t8_element_t *parent)
Compute the parent of a given element element and store it in parent.
parent needs to be an existing element. No memory is allocated by this function. element and parent can point to the same element, then the entries of element are overwritten by the ones 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 whose parent will be computed.
parent – [inout] This element’s entries will be overwritten by those of element’s parent. The storage for this element must exist and match the element class of the parent.