[MOAB-dev] r4603 - in MOAB/trunk: src/io/mhdf/include test/h5file

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Wed Mar 16 17:18:02 CDT 2011


Author: kraftche
Date: 2011-03-16 17:18:01 -0500 (Wed, 16 Mar 2011)
New Revision: 4603

Added:
   MOAB/trunk/test/h5file/validate.c
Modified:
   MOAB/trunk/src/io/mhdf/include/mhdf.h
   MOAB/trunk/test/h5file/Makefile.am
Log:
o Add utility that does various consistency checks on .h5m files.

I will eventually move this code into a function that can also be called
from unit tests.  But for now it is a stand-alone program.



Modified: MOAB/trunk/src/io/mhdf/include/mhdf.h
===================================================================
--- MOAB/trunk/src/io/mhdf/include/mhdf.h	2011-03-16 14:33:26 UTC (rev 4602)
+++ MOAB/trunk/src/io/mhdf/include/mhdf.h	2011-03-16 22:18:01 UTC (rev 4603)
@@ -500,7 +500,7 @@
 struct mhdf_EntDesc {
   long start_id;           /**< First file ID for table of data */
   long count;              /**< Number of entities in table */
-  int vals_per_ent;        /**< Connectivity length for elems, dimension for verts, unused for sets */
+  int vals_per_ent;        /**< Connectivity length for elems, dimension for verts, unused for sets, -1 for variable length poly* data */
   int* dense_tag_indices;  /**< Indices into mhdf_FileDesc::tags for each tag for which dense data is present for these entities */
   int num_dense_tags;      /**< Length of dense_tag_indices */
 };

Modified: MOAB/trunk/test/h5file/Makefile.am
===================================================================
--- MOAB/trunk/test/h5file/Makefile.am	2011-03-16 14:33:26 UTC (rev 4602)
+++ MOAB/trunk/test/h5file/Makefile.am	2011-03-16 22:18:01 UTC (rev 4603)
@@ -21,7 +21,7 @@
         h5partial \
         h5portable
 
-check_PROGRAMS = $(TESTS) dump_sets
+check_PROGRAMS = $(TESTS) dump_sets h5mvalidate
 LDADD = $(top_builddir)/src/libMOAB.la
 
 h5test_SOURCES = h5file_test.cpp
@@ -32,5 +32,8 @@
 h5partial_SOURCES = h5partial.cpp
 h5portable_SOURCES = h5portable.cpp
 
+h5mvalidate_SOURCES = validate.c
+h5mvalidate_LDADD = $(top_builddir)/src/io/mhdf/libmhdf.la
+
 dump_sets_SOURCES = dump_sets.c
 dump_sets_LDADD = $(top_builddir)/src/io/mhdf/libmhdf.la

Added: MOAB/trunk/test/h5file/validate.c
===================================================================
--- MOAB/trunk/test/h5file/validate.c	                        (rev 0)
+++ MOAB/trunk/test/h5file/validate.c	2011-03-16 22:18:01 UTC (rev 4603)
@@ -0,0 +1,1216 @@
+#include "mhdf.h"
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/stat.h>
+#include <error.h>
+#include <H5Tpublic.h>
+
+


More information about the moab-dev mailing list