diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2005-02-08 20:54:37 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2005-02-08 20:54:37 (GMT) |
commit | 99c08dd282650fcf968e37efdba00fa65bd349b7 (patch) | |
tree | ea19fd5354eec5b3b2d46e6658cde99ee066357f /tools/lib/h5tools.h | |
parent | 0c81f8682ce92f8c1f440af911de079348cd0832 (diff) | |
download | hdf5-99c08dd282650fcf968e37efdba00fa65bd349b7.zip hdf5-99c08dd282650fcf968e37efdba00fa65bd349b7.tar.gz hdf5-99c08dd282650fcf968e37efdba00fa65bd349b7.tar.bz2 |
[svn-r9960] Purpose:
bug fix, new test file
Description:
h5dump was not properly displaying array indices > 3D
Solution:
added the same algorythm and data structure that h5diff uses to calculate the array index
from a element number position
Platforms tested:
linux
solaris
Misc. update:
Diffstat (limited to 'tools/lib/h5tools.h')
-rw-r--r-- | tools/lib/h5tools.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/lib/h5tools.h b/tools/lib/h5tools.h index d5603f7..0c3633f 100644 --- a/tools/lib/h5tools.h +++ b/tools/lib/h5tools.h @@ -413,8 +413,9 @@ typedef struct h5tools_context_t { *row */ int indent_level; /*the number of times we need some *extra indentation */ - int default_indent_level; /*this is used when the indent - *level gets changed */ + int default_indent_level; /*this is used when the indent level gets changed */ + hsize_t acc[H5S_MAX_RANK]; /* accumulator position */ + hsize_t pos[H5S_MAX_RANK]; /* matrix position */ } h5tools_context_t; /* a structure to hold the subsetting particulars for a dataset */ @@ -510,4 +511,7 @@ extern int h5tools_canreadf(const char* name, hid_t dcpl_id); extern int h5tools_can_encode(H5Z_filter_t filtn); +void init_acc_pos(h5tools_context_t *ctx, hsize_t *dims); + + #endif /* H5TOOLS_H__ */ |