summaryrefslogtreecommitdiffstats
path: root/tools/src/h5diff/ph5diff_main.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-10-20 13:35:17 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-10-20 13:35:17 (GMT)
commit2fa9d84b12e769331fc7bd6efdde46347dd676c6 (patch)
treec4d17414126e670dfa425bb89d1750177104020d /tools/src/h5diff/ph5diff_main.c
parent8a391887be263e0ba7f1ba659dcf6559b5a5e01a (diff)
parent18ba8cb7d247cc2f535e53d66c2a47740724de6a (diff)
downloadhdf5-2fa9d84b12e769331fc7bd6efdde46347dd676c6.zip
hdf5-2fa9d84b12e769331fc7bd6efdde46347dd676c6.tar.gz
hdf5-2fa9d84b12e769331fc7bd6efdde46347dd676c6.tar.bz2
Merge pull request #713 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit '18ba8cb7d247cc2f535e53d66c2a47740724de6a': Windows cannot share files easily Avoid double free Windows had issues - revert code changes for get_option Remove extra command line Correct name of file Add Mask test to script Add new output files to clear test Correct name of err file Fix name of output files Fix format convert error mask test Fix tools error handling and valgrind issues Fix error handling issues Correct test results Cleanup valgrind issues HDFFV-1097 Changed file columns HDFFV-10297 add h5copy test and fix h5diff errors Fix VS2012 declaration error HDFFV-10297 Fix compiler compaliants HDFFV-10296 Update tools lib to use the error handling macros. Close ids in loop
Diffstat (limited to 'tools/src/h5diff/ph5diff_main.c')
-rw-r--r--tools/src/h5diff/ph5diff_main.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tools/src/h5diff/ph5diff_main.c b/tools/src/h5diff/ph5diff_main.c
index 89efc39..83240cb 100644
--- a/tools/src/h5diff/ph5diff_main.c
+++ b/tools/src/h5diff/ph5diff_main.c
@@ -50,7 +50,7 @@ int main(int argc, const char *argv[])
const char *fname2 = NULL;
const char *objname1 = NULL;
const char *objname2 = NULL;
- diff_opt_t options;
+ diff_opt_t opts;
h5tools_setprogname(PROGRAMNAME);
h5tools_setstatus(EXIT_SUCCESS);
@@ -72,11 +72,11 @@ int main(int argc, const char *argv[])
g_Parallel = 0;
- parse_command_line(argc, argv, &fname1, &fname2, &objname1, &objname2, &options);
+ parse_command_line(argc, argv, &fname1, &fname2, &objname1, &objname2, &opts);
- h5diff(fname1, fname2, objname1, objname2, &options);
+ h5diff(fname1, fname2, objname1, objname2, &opts);
- print_info(&options);
+ print_info(&opts);
}
/* Parallel h5diff */
else {
@@ -84,13 +84,13 @@ int main(int argc, const char *argv[])
/* Have the manager process the command-line */
if(nID == 0)
{
- parse_command_line(argc, argv, &fname1, &fname2, &objname1, &objname2, &options);
+ parse_command_line(argc, argv, &fname1, &fname2, &objname1, &objname2, &opts);
- h5diff(fname1, fname2, objname1, objname2, &options);
+ h5diff(fname1, fname2, objname1, objname2, &opts);
MPI_Barrier(MPI_COMM_WORLD);
- print_info(&options);
+ print_info(&opts);
print_manager_output();
}
/* All other tasks become workers and wait for assignments. */
@@ -178,8 +178,8 @@ ph5diff_worker(int nID)
MPI_Recv(&args, sizeof(args), MPI_BYTE, 0, MPI_TAG_ARGS, MPI_COMM_WORLD, &Status);
/* Do the diff */
- diffs.nfound = diff(file1_id, args.name1, file2_id, args.name2, &(args.options), &(args.argdata));
- diffs.not_cmp = args.options.not_cmp;
+ diffs.nfound = diff(file1_id, args.name1, file2_id, args.name2, &(args.opts), &(args.argdata));
+ diffs.not_cmp = args.opts.not_cmp;
/* If print buffer has something in it, request print token.*/
if(outBuffOffset>0)