Function t8_dpyramid_type_at_level

Function Documentation

int t8_dpyramid_type_at_level(const t8_dpyramid_t *p, const int level)

Compute the type of a pyramid at a given level.

Starting from its own level, we iterate over the levels and compute the type of this level. If p is a tetrahedron, we compute it in a tetrahedral fashion up unto the last level where p is a tet and continue in a pyramidal fashion

Parameters:
  • p[in] Input pyramid

  • level[in] The level at which the type is computed

Returns:

The type of p at level level.