Function t8_forest_partition_next_nonempty_rank

Function Documentation

int t8_forest_partition_next_nonempty_rank(t8_forest_t forest, int rank)

If t8_forest_partition_create_offsets was already called, compute for a given rank the next greater rank that is not empty.

Parameters:
  • forest[in] The forest.

  • rank[in] An MPI rank.

Returns:

A rank q > rank such that the forest has elements on q. If such a q does not exist, returns mpisize.