From 306cced22e6773f66b905b45384fa30cdc1970c9 Mon Sep 17 00:00:00 2001 From: Jerome Soumagne Date: Mon, 16 Jun 2014 12:39:04 -0500 Subject: [svn-r25296] Fix client index container name --- examples/h5ff_client_index.c | 4 +++- testff/h5ff_client_index.c | 4 +++- 2 files changed, 6 insertions(+), 2 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. */ diff --git a/testff/h5ff_client_index.c b/testff/h5ff_client_index.c index 1c2d854..923e02c 100644 --- a/testff/h5ff_client_index.c +++ b/testff/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. */ -- cgit v0.12