Function t8_dprism_linear_id

Function Documentation

t8_linearidx_t t8_dprism_linear_id(const t8_dprism_t *p, int level)

Computes the linear position of a prism in an uniform grid.

Parameters:
  • p[in] Prism whose id will be computed.

  • level[in] Refinement level of the prism.

Returns:

Returns the linear position of this prism on a grid.