summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorJerome Soumagne <jsoumagne@hdfgroup.org>2014-06-16 17:39:04 (GMT)
committerJerome Soumagne <jsoumagne@hdfgroup.org>2014-06-16 17:39:04 (GMT)
commit306cced22e6773f66b905b45384fa30cdc1970c9 (patch)
tree7a574ceb655d8a6a72e131626224ba5ec59489ee /examples
parentf4b22f3789ccdaa0acb8375e17ecb0cfc28105b4 (diff)
downloadhdf5-306cced22e6773f66b905b45384fa30cdc1970c9.zip
hdf5-306cced22e6773f66b905b45384fa30cdc1970c9.tar.gz
hdf5-306cced22e6773f66b905b45384fa30cdc1970c9.tar.bz2
[svn-r25296] Fix client index container name
Diffstat (limited to 'examples')
-rw-r--r--examples/h5ff_client_index.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/h5ff_client_index.c b/examples/h5ff_client_index.c
index 1c2d854..923e02c 100644
--- a/examples/h5ff_client_index.c
+++ b/examples/h5ff_client_index.c
@@ -217,7 +217,7 @@ query_and_view(hid_t file_id, const char *dataset_name, hid_t estack_id)
int
main(int argc, char **argv)
{
- const char *file_name="eff_file_index.h5";
+ char file_name[50];
char dataset_name[64];
hsize_t ntuples = NTUPLES;
hsize_t ncomponents = 3;
@@ -228,6 +228,8 @@ main(int argc, char **argv)
herr_t ret;
hsize_t i, j;
+ sprintf(file_name, "%s_%s", getenv("USER"), "eff_file_index.h5");
+
MPI_Init(&argc, &argv);
/* Call EFF_init to initialize the EFF stack. */