Function t8_element_set_linear_id

Function Documentation

void t8_element_set_linear_id(const t8_scheme_c *scheme, const t8_eclass_t tree_class, t8_element_t *element, const int level, const t8_linearidx_t id)

Initialize the entries of an allocated element according to a given linear id in a uniform refinement.

Parameters:
  • scheme[in] The scheme of the forest.

  • tree_class[in] The eclass of tree the elements are part of.

  • element[inout] The element whose entries will be set.

  • level[in] The level of the uniform refinement to consider.

  • id[in] The linear id. id must fulfil 0 <= id < ‘number of leaves in the uniform refinement’