diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-04-26 16:02:58 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2006-04-26 16:02:58 (GMT) |
commit | 3c4e460d396db708ae85851a6d8b6c8ae0957091 (patch) | |
tree | 37f7ca54e29dab8cddad7f8972779006ffb045da /tools/lib | |
parent | c5dc74de1583e40affee0ebef1749d0e7b0d94ba (diff) | |
download | hdf5-3c4e460d396db708ae85851a6d8b6c8ae0957091.zip hdf5-3c4e460d396db708ae85851a6d8b6c8ae0957091.tar.gz hdf5-3c4e460d396db708ae85851a6d8b6c8ae0957091.tar.bz2 |
[svn-r12304] Purpose:
bug fix
Description:
the diff region output was done in verbose mode
Solution:
avoid it in verbose
Platforms tested:
linux
Misc. update:
Diffstat (limited to 'tools/lib')
-rw-r--r-- | tools/lib/h5diff_array.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/lib/h5diff_array.c b/tools/lib/h5diff_array.c index 814a5d7..18858d6 100644 --- a/tools/lib/h5diff_array.c +++ b/tools/lib/h5diff_array.c @@ -1854,9 +1854,10 @@ hsize_t diff_region(hid_t obj1_id, } } } + /* print differences if found */ - if (nfound_b) + if (nfound_b && options->m_verbose) { parallel_print("Referenced dataset %lu %lu\n", (unsigned long)objno1,(unsigned long)objno2); @@ -1908,7 +1909,7 @@ hsize_t diff_region(hid_t obj1_id, } } - if (nfound_p) + if (nfound_p && options->m_verbose) { parallel_print("Region points\n"); for (i = 0; i < npoints1; i++) @@ -1954,7 +1955,9 @@ hsize_t diff_region(hid_t obj1_id, HDfree(ptdata2); } - return (nfound_p + nfound_b)/2; + nfound_b = nfound_b/ndims1; + nfound_p = nfound_p/ndims1; + return (nfound_p + nfound_b); } |