Function t8_shmem_array_index_for_writing

Function Documentation

void *t8_shmem_array_index_for_writing(t8_shmem_array_t array, size_t index)

Return a pointer to an element in a t8_shmem_array in writing mode.

Note

You can modify the value before the next call to t8_shmem_array_end_writing.

Note

Writing mode must be enabled for array.

Parameters:
  • array[in] The t8_shmem_array.

  • index[in] The index of an element.

Returns:

A pointer to the element at index in array.