Function t8_dtri_linear_id(const t8_dtri_t *, int)

Function Documentation

t8_linearidx_t t8_dtri_linear_id(const t8_dtri_t *element, int level)

Computes the linear position of a triangle in a uniform grid.

Note

This id is not the Morton index.

Parameters:
  • element[in] triangle whose id will be computed.

  • level[in] level of uniform grid to be considered.

Returns:

Returns the linear position of this triangle on a grid of level level.