diff options
author | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2014-06-16 17:39:04 (GMT) |
---|---|---|
committer | Jerome Soumagne <jsoumagne@hdfgroup.org> | 2014-06-16 17:39:04 (GMT) |
commit | 306cced22e6773f66b905b45384fa30cdc1970c9 (patch) | |
tree | 7a574ceb655d8a6a72e131626224ba5ec59489ee | |
parent | f4b22f3789ccdaa0acb8375e17ecb0cfc28105b4 (diff) | |
download | hdf5-306cced22e6773f66b905b45384fa30cdc1970c9.zip hdf5-306cced22e6773f66b905b45384fa30cdc1970c9.tar.gz hdf5-306cced22e6773f66b905b45384fa30cdc1970c9.tar.bz2 |
[svn-r25296] Fix client index container name
-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. */ |