This is a good idea. Either h5diff, or h5dump followed by diff should do the trick.
Note that we build h5diff as part of the HDF5 thorn; it is available e.g. as exe/sim/h5diff.
-erik
On Tue, Jul 31, 2012 at 8:48 AM, Yosef Zlochower yosef@astro.rit.edu wrote:
I was thinking about how to generate better testsuite for the CCE code, in particular, SphericalHarmonicDecomp thorn. The code generates an hdf5 file with coefficients for a Chebyshev/spherical harmonic expansions of the metric functions. Ideally, I would like to test that this hdf5 has the correct data. I could have the thorn also produce ascii output, but it seems to be a stronger test to examine the hdf5 file itself. Would it be possible to do this as an extension to the testsuite mechanism?
It seems like the h5diff (with the -d or -p option) program could be used for the comparison itself.
-- Dr. Yosef Zlochower Center for Computational Relativity and Gravitation Assistant Professor School of Mathematical Sciences Rochester Institute of Technology 85 Lomb Memorial Drive Rochester, NY 14623
Office:74-2067 Phone: +1 585-475-6103
yosef@astro.rit.edu
CONFIDENTIALITY NOTE: The information transmitted, including attachments, is intended only for the person(s) or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and destroy any copies of this information. _______________________________________________ Users mailing list Users@einsteintoolkit.org http://lists.einsteintoolkit.org/mailman/listinfo/users