mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
Move h5_test_init() calls after MPI_Init (#4988)
This commit is contained in:
parent
680cdd08bb
commit
877c6d8832
@ -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);
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user