Function t8_element_destroy

Function Documentation

void t8_element_destroy(const t8_scheme_c *scheme, const t8_eclass_t tree_class, const int length, t8_element_t **elems)

Deallocate an array of elements.

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

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

  • length[in] The number of elements in the array.

  • elems[inout] On input an array of length many allocated element pointers. On output all these pointers will be freed. element itself will not be freed by this function.