Merge pull request #2323 from edwardhartnett/ejh_par_test

We are incorrectly running tst_parallel_zlib on 1 processor - it should only ever run on 4
This commit is contained in:
Ward Fisher 2022-05-02 10:29:53 -06:00 committed by GitHub
commit 8b1640a445
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -52,7 +52,6 @@ echo "Parallel I/O test for Collective I/O, contributed by HDF Group."
if test "@HAS_PAR_FILTERS@" = "yes"; then
echo
echo "Parallel I/O test with zlib."
@MPIEXEC@ -n 1 ./tst_parallel_zlib
@MPIEXEC@ -n 4 ./tst_parallel_zlib
echo

View File

@ -60,6 +60,10 @@ main(int argc, char **argv)
/*printf("mpi_name: %s size: %d rank: %d\n", mpi_name,
mpi_size, mpi_rank);*/
/* This program must have exactly 4 processors. */
if (mpi_size != 4)
ERR;
#ifdef USE_MPE
MPE_Init_log();
s_init = MPE_Log_get_event_number();