Move h5_test_init() calls after MPI_Init (#4988)

This commit is contained in:
jhendersonHDF 2024-10-21 10:36:23 -05:00 committed by GitHub
parent 680cdd08bb
commit 877c6d8832
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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;