summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_array.c
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lib/h5diff_array.c')
-rw-r--r--tools/lib/h5diff_array.c9
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);
}