Function t8_element_array_init_size
Defined in File t8_containers.h
Function Documentation
-
void t8_element_array_init_size(t8_element_array_t *element_array, const t8_scheme_c *scheme, const t8_eclass_t tree_class, const size_t num_elements)
Initializes an already allocated (or static) array structure and allocates a given number of elements and initializes them with t8_element_init.
- Parameters:
element_array – [inout] Array structure to be initialized.
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] Number of initial array elements.