diff options
Diffstat (limited to 'examples/h5ff_client_index.c')
-rw-r--r-- | examples/h5ff_client_index.c | 4 |
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. */ |