Function t8_cmesh_offset_percent

Function Documentation

t8_shmem_array_t t8_cmesh_offset_percent(t8_cmesh_t cmesh, sc_MPI_Comm comm, int percent)

Create a repartition array, where each process sends a percentage 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.

  • percent[in] The percentage of trees that this process should send to the next one. Must satisfy 0 <= percent <= 100 and be the same on each process.

Returns:

A shared memory offset array storing the new offsets. Its associated communicator is comm.