Function t8_dpyramid_last_descendant(const t8_dpyramid_t *, t8_dpyramid_t *, int)

Function Documentation

void t8_dpyramid_last_descendant(const t8_dpyramid_t *p, t8_dpyramid_t *desc, int level)

Compute the last descendant of a pyramid at a given level. This is the descendant of the pyramid in a uniform level refinement that has the largest id.

Parameters:
  • p[in] pyramid whose descendant is computed.

  • desc[out] Existing pyramid whose data will be filled with the data of p’s last descendant on level level.

  • level[in] The refinement level. Must be greater than p’s refinement level.