diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2004-02-01 04:06:25 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2004-02-01 04:06:25 (GMT) |
commit | d77b49efe03801b586a88a0d51adf357f88ad8d1 (patch) | |
tree | 29049126de02d5237a87aca5711d388456f10f6a /src | |
parent | 6e0a562d253f74409c4de66eb04c00e0efd0a065 (diff) | |
download | hdf5-d77b49efe03801b586a88a0d51adf357f88ad8d1.zip hdf5-d77b49efe03801b586a88a0d51adf357f88ad8d1.tar.gz hdf5-d77b49efe03801b586a88a0d51adf357f88ad8d1.tar.bz2 |
[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
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FDmpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
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") |