Function t8_element_get_sibling

Function Documentation

void t8_element_get_sibling(const t8_scheme_c *scheme, const t8_eclass_t tree_class, const t8_element_t *elem, const int sibid, t8_element_t *sibling)

Compute a specific sibling of a given element element and store it in sibling.

sibling needs to be an existing element. No memory is allocated by this function. element and sibling can point to the same element, then the entries of element are overwritten by the ones of its i-th sibling.

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

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

  • elem[in] The element whose sibling will be computed.

  • sibid[in] The id of the sibling computed.

  • sibling[inout] This element’s entries will be overwritten by those of element’s sibid-th sibling. The storage for this element must exist and match the element class of the sibling.