Function t8_element_array_init_copy
Defined in File t8_containers.h
Function Documentation
-
void t8_element_array_init_copy(t8_element_array_t *element_array, const t8_scheme_c *scheme, const t8_eclass_t tree_class, const t8_element_t *data, const size_t num_elements)
Initializes an already allocated (or static) array structure and copy an existing array of t8_element_t into it.
- 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.
data – [in] An array of t8_element_t which will be copied into element_array. The elements in data must belong to scheme and must be properly initialized with either t8_element_new or t8_element_init.
num_elements – [in] Number of elements in data to be copied.