From c975f49984d5da0ba5a9cd4fb3f8918bb49b595c Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Tue, 27 Mar 2018 14:20:50 -0500 Subject: Add an assert to verify that we don't write when between MPI_Barrier() calls during a flush. --- src/H5FDmpio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c index a898786..ee3277d 100644 --- a/src/H5FDmpio.c +++ b/src/H5FDmpio.c @@ -1730,6 +1730,9 @@ H5FD_mpio_write(H5FD_t *_file, H5FD_mem_t type, hid_t H5_ATTR_UNUSED dxpl_id, HDassert(H5FD_MPIO==file->pub.driver_id); HDassert(buf); + /* Verify that no data is written when between MPI_Barrier()s during file flush */ + HDassert(!H5CX_get_mpi_file_flushing()); + /* Portably initialize MPI status variable */ HDmemset(&mpi_stat, 0, sizeof(MPI_Status)); -- cgit v0.12