Function t8_cmesh_uniform_bounds_equal_element_count
Defined in File t8_cmesh.h
Function Documentation
-
void t8_cmesh_uniform_bounds_equal_element_count(t8_cmesh_t cmesh, const int level, const t8_scheme_c *tree_scheme, t8_gloidx_t *first_local_tree, t8_gloidx_t *child_in_tree_begin, t8_gloidx_t *last_local_tree, t8_gloidx_t *child_in_tree_end, int8_t *first_tree_shared)
Calculate the section of a uniform forest for the current rank.
- Parameters:
cmesh – [in] The cmesh to be considered.
level – [in] The uniform refinement level to be created.
tree_scheme – [in] The element scheme for which to compute the bounds.
first_local_tree – [out] The first tree that contains elements belonging to the calling processor.
child_in_tree_begin – [out] The tree-local index of the first element belonging to the calling processor. Not computed if NULL.
last_local_tree – [out] The last tree that contains elements belonging to the calling processor.
child_in_tree_end – [out] The tree-local index of the first element that does not belonging to the calling processor anymore. Not computed if NULL.
first_tree_shared – [out] If not NULL, 1 or 0 is stored here depending on whether first_local_tree is the same as last_local_tree on the previous process. cmesh must be committed before calling this function.