summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2004-02-01 04:06:22 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2004-02-01 04:06:22 (GMT)
commitfd442eae1864eeab4a1a72cdbdca62412caa6c39 (patch)
tree184000b51f87941ee4f4d27cb3ed739d1b7fa1c6
parent7388e8a3e432d6c0e37a19da098b4cddd3aa3925 (diff)
downloadhdf5-fd442eae1864eeab4a1a72cdbdca62412caa6c39.zip
hdf5-fd442eae1864eeab4a1a72cdbdca62412caa6c39.tar.gz
hdf5-fd442eae1864eeab4a1a72cdbdca62412caa6c39.tar.bz2
[svn-r8140] 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
-rw-r--r--src/H5FDmpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FDmpio.c b/src/H5FDmpio.c
index 3b4b69f..3a56e0e 100644
--- a/src/H5FDmpio.c
+++ b/src/H5FDmpio.c
@@ -907,7 +907,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 */
@@ -915,6 +914,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_mpi_haddr_to_MPIOff(file->eoa, &mpi_off)<0)
HGOTO_ERROR(H5E_INTERNAL, H5E_BADRANGE, FAIL, "can't convert from haddr to MPI off")