Function t8_element_array_new_count

Function Documentation

t8_element_array_t *t8_element_array_new_count(const t8_scheme_c *scheme, const t8_eclass_t tree_class, const size_t num_elements)

Creates a new array structure with a given length (number of elements) and calls t8_element_new for those elements.

Parameters:
  • scheme[in] The eclass scheme of which elements should be stored.

  • tree_class[in] The tree class of the elements stored in the array.

  • num_elements[in] Initial number of array elements.

Returns:

Return an allocated array with allocated and initialized elements for which t8_element_new was called.