Function t8_shmem_array_start_writing

Function Documentation

int t8_shmem_array_start_writing(t8_shmem_array_t array)

Enable writing mode for a shmem array.

Only some processes may be allowed to write into the array, which is indicated by the return value being non-zero. The shared memory is managed via inter- and intranode communicators. Only rank 0 of the intranode communicator will be allowed to write into the array.

Note

This function is MPI collective.

Parameters:

array[inout] Initialized array. Writing will be enabled on certain processes.

Returns:

True if the calling process can write into the array.