Function t8_element_init(const t8_scheme_c *, const t8_eclass_t, const int, t8_element_t *)

Function Documentation

void t8_element_init(const t8_scheme_c *scheme, const t8_eclass_t tree_class, const int length, t8_element_t *elem)

Initialize an array of allocated elements.

See also

t8_element_init must be matched by a call to

See also

t8_element_deinit

See also

t8_element_deinit

See also

t8_element_new

See also

t8_element_is_valid

Note

In debugging mode, an element that was passed to t8_element_init must pass t8_element_is_valid.

Note

If an element was created by t8_element_new then t8_element_init may not be called for it. Thus, t8_element_init should initialize an element in the same way as a call to t8_element_new would.

Note

Every call to

Parameters:
  • scheme[in] The scheme to use.

  • tree_class[in] The eclass of the current tree.

  • length[in] The number of elements to be initialized.

  • elem[inout] On input an array of length many allocated elements.