Function t8_cmesh_offset_half(t8_cmesh_t, sc_MPI_Comm)
Defined in File t8_cmesh_partition.h
Function Documentation
-
t8_shmem_array_t t8_cmesh_offset_half(t8_cmesh_t cmesh, sc_MPI_Comm comm)
Create a repartition array, where each process sends half of its trees to the next process. The last process does not send any trees.
Note
This function is MPI collective.
- Parameters:
cmesh – [in] A cmesh that is committed and partitioned.
comm – [in] A valid MPI communicator for cmesh.
- Returns:
A shared memory offset array storing the new offsets. Its associated communicator is comm.