diff --git a/applications/test/parallel-comm2/Test-parallel-comm2.C b/applications/test/parallel-comm2/Test-parallel-comm2.C index 7ccd11cf29..d38f35c1b3 100644 --- a/applications/test/parallel-comm2/Test-parallel-comm2.C +++ b/applications/test/parallel-comm2/Test-parallel-comm2.C @@ -266,9 +266,8 @@ int main(int argc, char *argv[]) UPstream::mpiGather ( myDigest.cdata_bytes(), // Send - SHA1Digest::max_size(), // Num send per proc digests.data_bytes(), // Recv - SHA1Digest::max_size(), // Num recv per proc + SHA1Digest::max_size(), // Num send/recv per rank UPstream::commGlobal() ); } diff --git a/applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C b/applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C index 80f3bf8b18..83f7fb6644 100644 --- a/applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C +++ b/applications/utilities/surface/surfaceRedistributePar/surfaceRedistributePar.C @@ -62,10 +62,10 @@ void writeProcStats ) { // Determine surface bounding boxes, faces, points - List surfBb(Pstream::nProcs()); - surfBb[Pstream::myProcNo()] = treeBoundBox(s.points()); - Pstream::gatherList(surfBb); - + List surfBb + ( + UPstream::listGatherValues(treeBoundBox(s.points())) + ); labelList nPoints(UPstream::listGatherValues