From 877c6d88324be6ca4ad4e2e1736fb26afa4bfb38 Mon Sep 17 00:00:00 2001 From: jhendersonHDF Date: Mon, 21 Oct 2024 10:36:23 -0500 Subject: [PATCH] Move h5_test_init() calls after MPI_Init (#4988) --- testpar/t_pmulti_dset.c | 4 ++-- testpar/t_select_io_dset.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/testpar/t_pmulti_dset.c b/testpar/t_pmulti_dset.c index 6cd5116ebb..9d045cab22 100644 --- a/testpar/t_pmulti_dset.c +++ b/testpar/t_pmulti_dset.c @@ -650,13 +650,13 @@ main(int argc, char *argv[]) unsigned i; int ret; - h5_test_init(); - /* Initialize MPI */ MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &mpi_size); MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank); + h5_test_init(); + /* Generate random number seed, if rank 0 */ if (MAINPROCESS) seed = (unsigned)time(NULL); diff --git a/testpar/t_select_io_dset.c b/testpar/t_select_io_dset.c index e069e2af44..2414a9a0a2 100644 --- a/testpar/t_select_io_dset.c +++ b/testpar/t_select_io_dset.c @@ -4086,13 +4086,13 @@ main(int argc, char *argv[]) unsigned select; unsigned mwbuf; - h5_test_init(); - /* Initialize MPI */ MPI_Init(&argc, &argv); MPI_Comm_size(MPI_COMM_WORLD, &mpi_size); MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank); + h5_test_init(); + if ((fapl = H5Pcreate(H5P_FILE_ACCESS)) < 0) P_TEST_ERROR;