Function t8_dtri_element_pack(t8_dtri_t **const, const unsigned int, void *, const int, int *, sc_MPI_Comm)

Function Documentation

void t8_dtri_element_pack(t8_dtri_t **const elements, const unsigned int count, void *send_buffer, const int buffer_size, int *position, sc_MPI_Comm comm)

Packs an array of triangle elements into contiguous memory. Triangles are packed as x and y coordinates, type and level. Compare MPI_Pack function.

Parameters:
  • elements[in] The element array to be packed.

  • count[in] Number of elements to be packed.

  • send_buffer[out] Output buffer.

  • buffer_size[in] Output buffer size.

  • position[inout] Current position in buffer.

  • comm[in] Communicator.