aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2004-01-20 11:10:48 +0000
committertradke <tradke@4825ed28-b72c-4eae-9704-e50c059e567d>2004-01-20 11:10:48 +0000
commit62ee8e4eeee53dbadc5224b55ed1f57fb168ee8f (patch)
tree6ca0345962495ca19435918c9ddf3cf8054bbfb4
parent8a31dd4a0f4308011ffd1797b73c27f4cf294ae0 (diff)
Also print the outfile filename in progress report.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOHDF5/trunk@177 4825ed28-b72c-4eae-9704-e50c059e567d
-rw-r--r--src/util/hdf5_merge.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/util/hdf5_merge.c b/src/util/hdf5_merge.c
index aa3b314..225cb7e 100644
--- a/src/util/hdf5_merge.c
+++ b/src/util/hdf5_merge.c
@@ -144,7 +144,8 @@ int main (int argc, char *argv[])
/* do the copying by iterating over all objects */
for (i = 0; i < argc - 2; i++)
{
- printf ("\n Merging objects from input file '%s'\n", argv[i + 1]);
+ printf ("\n Merging objects from input file '%s' into output file '%s'\n",
+ argv[i + 1], argv[argc-1]);
pathname = "";
CHECK_ERROR (H5Giterate (infiles[i], "/", NULL, CopyObject, &outfile));
}
@@ -356,7 +357,7 @@ static herr_t CopyAttribute (hid_t from,
CHECK_ERROR (H5Aread (attr, datatype, value));
CHECK_ERROR (H5Aclose (attr));
CHECK_ERROR (attr = H5Acreate (to, attrname, datatype, dataspace,
- H5P_DEFAULT));
+ H5P_DEFAULT));
CHECK_ERROR (H5Awrite (attr, datatype, value));
free (value);
}