mabarnes / moment_kinetics

Other
2 stars 4 forks source link

Improve shared-memory debugging when also using distributed-MPI #197

Closed johnomotani closed 3 months ago

johnomotani commented 3 months ago

Fix the use of 'views' with MPIDebugSharedArray.

Set is_read/is_written/is_initialized/accessed fields of MPIDebugSharedArray when passed to MPI.Buffer(). This ensures that we check that the array is synchronized across the shared-memory block after it is updated (by the root process of the shared-memory block) using distributed-MPI communication.