Function t8_element_get_linear_id

Function Documentation

t8_linearidx_t t8_element_get_linear_id(const t8_scheme_c *scheme, const t8_eclass_t tree_class, const t8_element_t *element, const int level)

Compute the linear id of a given element in a hypothetical uniform refinement of a given level.

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

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

  • element[in] The element whose id we compute.

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

Returns:

The linear id of the element.