[MOAB-dev] r3902 - MOAB/trunk/src/io/mhdf/src

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Fri May 14 11:41:09 CDT 2010


Author: kraftche
Date: 2010-05-14 11:41:09 -0500 (Fri, 14 May 2010)
New Revision: 3902

Modified:
   MOAB/trunk/src/io/mhdf/src/util.c
Log:
attempt to fix HDF5 1.6 compatibility

Modified: MOAB/trunk/src/io/mhdf/src/util.c
===================================================================
--- MOAB/trunk/src/io/mhdf/src/util.c	2010-05-14 16:28:09 UTC (rev 3901)
+++ MOAB/trunk/src/io/mhdf/src/util.c	2010-05-14 16:41:09 UTC (rev 3902)
@@ -366,8 +366,18 @@
   
   if (count)
     mem_id = H5Screate_simple( dims, counts, NULL );
-  else 
+  else {
+#if H5_VERS_MAJOR > 1 || H5_VERS_MINOR >= 8
     mem_id = H5Screate(H5S_NULL); 
+#else
+    mem_id = H5Screate( H5S_SIMPLE );
+    if (mem_id && 0 > H5Sselect_none( mem_id )) {
+      H5Sclose( mem_id );
+      mem_id = -1;
+    }
+#endif
+  }
+  
   if (mem_id < 0)
   {
     H5Sclose( slab_id );





























More information about the moab-dev mailing list