From d77b49efe03801b586a88a0d51adf357f88ad8d1 Mon Sep 17 00:00:00 2001 From: Quincey Koziol Date: Sat, 31 Jan 2004 23:06:25 -0500 Subject: [svn-r8141] Purpose: Bug fix Description: Move assertion to allow closing non-HDF5 files with the MPI-I/O VFD to work correctly again. Platforms tested: FreeBSD 4.9 (sleipnir) h5committest --- src/H5FDmpio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c index 99b9110..586469f 100644 --- a/src/H5FDmpio.c +++ b/src/H5FDmpio.c @@ -1182,7 +1182,6 @@ H5FD_mpio_close(H5FD_t *_file) #endif assert(file); assert(H5FD_MPIO==file->pub.driver_id); - assert(file->eoa>0); #ifdef H5_MPI_FILE_SET_SIZE_BIG /* Check if we should truncate the file */ @@ -1190,6 +1189,7 @@ H5FD_mpio_close(H5FD_t *_file) MPI_Offset mpi_off; /* Offset to write test data at */ /* Some numeric conversions */ + assert(file->eoa>0); if (H5FD_mpio_haddr_to_MPIOff(file->eoa, &mpi_off)<0) HGOTO_ERROR(H5E_INTERNAL, H5E_BADRANGE, FAIL, "can't convert from haddr to MPI off") -- cgit v0.12