Function t8_element_array_resize

Function Documentation

void t8_element_array_resize(t8_element_array_t *element_array, const size_t new_count)

Change the number of elements stored in an element array.

Note

If new_count is larger than the number of current elements on element_array, then t8_element_init is called for the new elements.

Parameters:
  • element_array[inout] The element array to be modified.

  • new_count[in] The new element count of the array. If it is zero the effect equals t8_element_array_reset.