summaryrefslogtreecommitdiffstats
path: root/testpar
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2023-09-01 04:34:57 (GMT)
committerGitHub <noreply@github.com>2023-09-01 04:34:57 (GMT)
commit896270cc6b4f14379f0b9d66c74a538235259225 (patch)
treee0a6d38b78802932eb791a9ef70d7696ae8ccb6f /testpar
parentb0333a0f541086f4868d782ac5f8902fc0f43b62 (diff)
downloadhdf5-896270cc6b4f14379f0b9d66c74a538235259225.zip
hdf5-896270cc6b4f14379f0b9d66c74a538235259225.tar.gz
hdf5-896270cc6b4f14379f0b9d66c74a538235259225.tar.bz2
Removed all the ranks printing out testing information (#3457)
Diffstat (limited to 'testpar')
-rw-r--r--testpar/t_2Gio.c2
-rw-r--r--testpar/t_shapesame.c2
-rw-r--r--testpar/testphdf5.c10
3 files changed, 11 insertions, 3 deletions
diff --git a/testpar/t_2Gio.c b/testpar/t_2Gio.c
index 1edec56..a6e8560 100644
--- a/testpar/t_2Gio.c
+++ b/testpar/t_2Gio.c
@@ -4278,6 +4278,8 @@ main(int argc, char **argv)
MPI_Comm_size(test_comm, &mpi_size);
MPI_Comm_rank(test_comm, &mpi_rank);
+ mpi_rank_framework_g = mpi_rank;
+
memset(filenames, 0, sizeof(filenames));
dim0 = BIG_X_FACTOR;
diff --git a/testpar/t_shapesame.c b/testpar/t_shapesame.c
index d9cd20c..6587190 100644
--- a/testpar/t_shapesame.c
+++ b/testpar/t_shapesame.c
@@ -4260,6 +4260,8 @@ main(int argc, char **argv)
MPI_Comm_size(MPI_COMM_WORLD, &mpi_size);
MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
+ mpi_rank_framework_g = mpi_rank;
+
dim0 = ROW_FACTOR * mpi_size;
dim1 = COL_FACTOR * mpi_size;
diff --git a/testpar/testphdf5.c b/testpar/testphdf5.c
index ed0510c..0b94be9 100644
--- a/testpar/testphdf5.c
+++ b/testpar/testphdf5.c
@@ -234,9 +234,11 @@ parse_options(int argc, char **argv)
nerrors++;
return (1);
}
- printf("Test filenames are:\n");
- for (i = 0; i < n; i++)
- printf(" %s\n", filenames[i]);
+ if (mpi_rank == 0) {
+ printf("Test filenames are:\n");
+ for (i = 0; i < n; i++)
+ printf(" %s\n", filenames[i]);
+ }
}
return (0);
@@ -314,6 +316,8 @@ main(int argc, char **argv)
MPI_Comm_size(MPI_COMM_WORLD, &mpi_size);
MPI_Comm_rank(MPI_COMM_WORLD, &mpi_rank);
+ mpi_rank_framework_g = mpi_rank;
+
dim0 = ROW_FACTOR * mpi_size;
dim1 = COL_FACTOR * mpi_size;