Template Function grid_local_num_elements

Function Documentation

template<typename grid_t>
t8_locidx_t grid_local_num_elements(const grid_t grid)

Templated getter functions to use one call to get the local number of elements (trees) for a forest(cmesh).

Template Parameters:

grid_t – Either a cmesh or a forest.

Parameters:

grid[in] The forest/cmesh to use.

Returns:

Number of local elements/trees.