Function t8_element_MPI_Unpack

Function Documentation

void t8_element_MPI_Unpack(const t8_scheme_c *scheme, const t8_eclass_t tree_class, void *recvbuf, const int buffer_size, int *position, t8_element_t **elements, const unsigned int count, sc_MPI_Comm comm)

Unpack multiple elements from contiguous memory that was received via MPI.

Parameters:
  • scheme[in] The scheme of the forest.

  • tree_class[in] The eclass of tree the elements are part of.

  • recvbuf[in] Buffer from which to unpack the elements

  • buffer_size[in] size of the buffer (in order to check that we don’t access out of range)

  • position[inout] the position of the first byte that is not already packed

  • elements[in] Array of initialised elements that is to be filled from the message

  • count[in] Number of elements to unpack

  • comm[in] MPI Communicator