Skip to content

Commit

Permalink
Move h5_test_init() calls after MPI_Init (HDFGroup#4988)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhendersonHDF authored Oct 21, 2024
1 parent 680cdd0 commit 877c6d8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions testpar/t_pmulti_dset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions testpar/t_select_io_dset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 877c6d8

Please sign in to comment.