Function t8_cmesh_comm_is_valid(t8_cmesh_t, sc_MPI_Comm)

Function Documentation

int t8_cmesh_comm_is_valid(t8_cmesh_t cmesh, sc_MPI_Comm comm)

Check whether a given MPI communicator assigns the same rank and mpisize as stored in a cmesh.

Parameters:
  • cmesh[in] The cmesh to be considered.

  • comm[in] A MPI communicator.

Returns:

True if mpirank and mpisize from comm are the same as the values stored in cmesh. False otherwise. cmesh must be committed before calling this function.