[MOAB-dev] r4551 - MOAB/trunk/test/h5file

kraftche at cae.wisc.edu kraftche at cae.wisc.edu
Tue Mar 8 12:58:46 CST 2011


Author: kraftche
Date: 2011-03-08 12:58:46 -0600 (Tue, 08 Mar 2011)
New Revision: 4551

Added:
   MOAB/trunk/test/h5file/dump_sets.c
Modified:
   MOAB/trunk/test/h5file/Makefile.am
Log:
add util to debug .h5m set data

Modified: MOAB/trunk/test/h5file/Makefile.am
===================================================================
--- MOAB/trunk/test/h5file/Makefile.am	2011-03-08 18:58:02 UTC (rev 4550)
+++ MOAB/trunk/test/h5file/Makefile.am	2011-03-08 18:58:46 UTC (rev 4551)
@@ -13,15 +13,15 @@
                -I$(top_srcdir)/src/parallel \
 	       -I$(top_builddir)/src/parallel 
             
-check_PROGRAMS = h5test \
-                 h5legacy \
-                 h5varlen \
-                 h5sets_test \
-                 h5regression \
-                 h5partial \
-                 h5portable
+TESTS = h5test \
+        h5legacy \
+        h5varlen \
+        h5sets_test \
+        h5regression \
+        h5partial \
+        h5portable
 
-TESTS = $(check_PROGRAMS)
+check_PROGRAMS = $(TESTS) dump_sets
 LDADD = $(top_builddir)/src/libMOAB.la
 
 h5test_SOURCES = h5file_test.cpp
@@ -31,3 +31,6 @@
 h5regression_SOURCES = h5regression.cpp
 h5partial_SOURCES = h5partial.cpp
 h5portable_SOURCES = h5portable.cpp
+
+dump_sets_SOURCES = dump_sets.c
+dump_sets_LDADD = $(top_builddir)/src/io/mhdf/libmhdf.la

Added: MOAB/trunk/test/h5file/dump_sets.c
===================================================================
--- MOAB/trunk/test/h5file/dump_sets.c	                        (rev 0)
+++ MOAB/trunk/test/h5file/dump_sets.c	2011-03-08 18:58:46 UTC (rev 4551)
@@ -0,0 +1,155 @@
+#include "mhdf.h"
+#include <stdio.h>
+#include <stdlib.h>
+#include <H5Tpublic.h>
+
+#define CHECK \
+  do { if (mhdf_isError(&status)) { \
+    fprintf(stderr,"mhdf error at %s:%d : \"%s\"\n", __FILE__, __LINE__, \
+      mhdf_message(&status)); \
+    exit(2); \


More information about the moab-dev mailing list