[ET Trac] [Einstein Toolkit] #1501: Include string null terminator in HDF5 attributes
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Mon Dec 9 12:41:33 CST 2013
#1501: Include string null terminator in HDF5 attributes
---------------------------+------------------------------------------------
Reporter: barry.wardell | Owner: eschnett
Type: enhancement | Status: new
Priority: major | Milestone:
Component: Carpet | Version: development version
Keywords: |
---------------------------+------------------------------------------------
The HDF5 documentation <http://www.hdfgroup.org/HDF5/doc/RM/RM_H5T.html
#Datatype-SetSize> states that the size of a string should include space
for a null terminator. Up to now, the "name" attribute in HDF5 output
files was stored as a string excluding the null terminator. This meant
that when the attributed was read back, it could not be treated as a
standard C string since it was missing the null terminator.
The attached patch changes the behaviour so that the null terminator is
included.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1501>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list