Template Function grid_element_shape

Function Documentation

template<typename grid_t>
t8_element_shape_t grid_element_shape(const grid_t grid, const t8_locidx_t itree, const t8_element_t *element)

Templated function to get the shape of an element for forests or cmeshes.

If grid is a cmesh the input for element is ignored.

Template Parameters:

grid_t

Parameters:
  • grid[in] The forest/cmesh to use.

  • itree[in] The local if of the tree to use.

  • element[in] If grid is a forest an element in itree.

Returns:

The shape of the element.