Function t8_forest_element_check_owner
Defined in File t8_forest_private.h
Function Documentation
-
int t8_forest_element_check_owner(t8_forest_t forest, t8_element_t *element, t8_gloidx_t gtreeid, t8_eclass_t eclass, int rank, int element_is_desc)
Perform a constant runtime check if a given rank is owner of a given element.
If the element is owned by more than one rank, then this check is only true for the smallest.
- Parameters:
forest – [in] A forest.
element – [in] An element of forest.
gtreeid – [in] The global tree in which element is in.
eclass – [in] The element class of the tree.
rank – [in] An mpi rank.
element_is_desc – [in] This should be true, if element is its own first_descendant at the maximum level. Must be false otherwise.
- Returns:
True if and only if rank is the (first) owner process of element.