[MOAB-dev] r2879 - MOAB/trunk/mhdf/src

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Wed May 6 15:21:35 CDT 2009


Author: kraftche
Date: 2009-05-06 15:21:35 -0500 (Wed, 06 May 2009)
New Revision: 2879

Modified:
   MOAB/trunk/mhdf/src/file-desc.c
Log:
fix build issue with HDF5 version 1.8.x

Modified: MOAB/trunk/mhdf/src/file-desc.c
===================================================================
--- MOAB/trunk/mhdf/src/file-desc.c	2009-05-06 19:32:15 UTC (rev 2878)
+++ MOAB/trunk/mhdf/src/file-desc.c	2009-05-06 20:21:35 UTC (rev 2879)
@@ -295,7 +295,11 @@
       result->tags[index].size > 1) {
     close_type = 1;
     array_len = result->tags[index].size;
+#if defined(H5Tarray_create_vers) && H5Tarray_create_vers > 1  
+    type = H5Tarray_create2( type, 1, &array_len );
+#else
     type = H5Tarray_create( type, 1, &array_len, 0 );
+#endif
     if (type < 0) {
       mhdf_setFail( status, "H5Tarray_create failed for tag (\"%s\")", name );
       free( result );



More information about the moab-dev mailing list