summaryrefslogtreecommitdiffstats
path: root/tools/lib/h5diff_dset.c
diff options
context:
space:
mode:
authorAlbert Cheng <acheng@hdfgroup.org>2005-01-26 23:03:29 (GMT)
committerAlbert Cheng <acheng@hdfgroup.org>2005-01-26 23:03:29 (GMT)
commit42754e6246d6916d88720b32a4a2d2b6cbabb312 (patch)
treec6999853ed938b197eea6e40c1c9f9907e2a7a7a /tools/lib/h5diff_dset.c
parent3cb812ae8a610f5e3801c89f915c680a3f1a4f5b (diff)
downloadhdf5-42754e6246d6916d88720b32a4a2d2b6cbabb312.zip
hdf5-42754e6246d6916d88720b32a4a2d2b6cbabb312.tar.gz
hdf5-42754e6246d6916d88720b32a4a2d2b6cbabb312.tar.bz2
[svn-r9872] Purpose:
New feature. Description: Added new tool ph5diff. (Code done by Leon Arber.) Code is changed but test is not working yet. For now, it skipped all tests. Platforms tested: Tested in heping, serial and parallel modes.
Diffstat (limited to 'tools/lib/h5diff_dset.c')
-rw-r--r--tools/lib/h5diff_dset.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/tools/lib/h5diff_dset.c b/tools/lib/h5diff_dset.c
index 0cc8324..a558987 100644
--- a/tools/lib/h5diff_dset.c
+++ b/tools/lib/h5diff_dset.c
@@ -13,6 +13,7 @@
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
#include "h5diff.h"
+#include "ph5diff.h"
#include "H5private.h"
#include "h5tools.h"
@@ -205,9 +206,9 @@ hsize_t diff_datasetid( hid_t dset1_id,
storage_size2=H5Dget_storage_size(dset2_id);
if (storage_size1<=0 && storage_size2<=0)
{
- if (options->m_verbose && obj1_name && obj2_name)
- printf("<%s> and <%s> are empty datasets\n", obj1_name, obj2_name);
- cmp=0;
+ if (options->m_verbose && obj1_name && obj2_name)
+ parallel_print("<%s> and <%s> are empty datasets\n", obj1_name, obj2_name);
+ cmp=0;
}
@@ -289,11 +290,12 @@ hsize_t diff_datasetid( hid_t dset1_id,
sign2=H5Tget_sign(m_type2);
if ( sign1 != sign2 )
{
- if (options->m_verbose && obj1_name) {
- printf("Comparison not supported: <%s> has sign %s ", obj1_name, get_sign(sign1));
- printf("and <%s> has sign %s\n", obj2_name, get_sign(sign2));
- }
- cmp=0;
+ if (options->m_verbose && obj1_name) {
+ parallel_print("Comparison not supported: <%s> has sign %s ", obj1_name, get_sign(sign1));
+ parallel_print("and <%s> has sign %s\n", obj2_name, get_sign(sign2));
+ }
+
+ cmp=0;
}
/*-------------------------------------------------------------------------