diff options
-rw-r--r-- | examples/h5ff_client_index.c | 4 | ||||
-rw-r--r-- | 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. */ |