Function t8_offset_next_owner_of_tree(const int, const t8_gloidx_t, const t8_gloidx_t *, int)
Defined in File t8_cmesh_offset.c
Function Documentation
-
int t8_offset_next_owner_of_tree(const int mpisize, const t8_gloidx_t gtree, const t8_gloidx_t *offset, int current_owner)
Given a process current_owner that has the tree gtree as local tree, find the next bigger rank that also has this tree as local tree.
- Parameters:
mpisize – [in] The number of MPI ranks, also the number of entries in offset minus 1.
gtree – [in] The global id of a tree.
offset – [in] The partition to be considered.
current_owner – [in] A process that has gtree as local tree.
- Returns:
The MPI rank of the next bigger rank than current_owner that has gtree as local tree. -1 if non such rank exists.