[MOAB-dev] r3900 - MOAB/trunk/src/io/mhdf/src
kraftche at cae.wisc.edu
kraftche at cae.wisc.edu
Fri May 14 11:27:17 CDT 2010
Author: kraftche
Date: 2010-05-14 11:27:17 -0500 (Fri, 14 May 2010)
New Revision: 3900
Modified:
MOAB/trunk/src/io/mhdf/src/util.c
Log:
fix handling of zero-length writes used for HDF5 collective IO
Modified: MOAB/trunk/src/io/mhdf/src/util.c
===================================================================
--- MOAB/trunk/src/io/mhdf/src/util.c 2010-05-14 16:26:40 UTC (rev 3899)
+++ MOAB/trunk/src/io/mhdf/src/util.c 2010-05-14 16:27:17 UTC (rev 3900)
@@ -364,7 +364,10 @@
return 0;
}
- mem_id = H5Screate_simple( dims, counts, NULL );
+ if (count)
+ mem_id = H5Screate_simple( dims, counts, NULL );
+ else
+ mem_id = H5Screate(H5S_NULL);
if (mem_id < 0)
{
H5Sclose( slab_id );
More information about the moab-dev
mailing list