STYLE: broadcast instead of combineScatter/listCombineScatter/mapCombineScatter

- these are the same thing now and 'broadcast' expresses the intention
  more directly/consistently
This commit is contained in:
Mark Olesen
2022-03-10 21:54:52 +01:00
parent de8ef5332d
commit 62fc3bbc33
68 changed files with 153 additions and 148 deletions

View File

@ -283,7 +283,7 @@ bool Foam::distributedTriSurfaceMesh::read()
// Force underlying triSurfaceMesh to calculate volume type
// (is topological walk; does not construct tree)
surfaceClosed_ = triSurfaceMesh::hasVolumeType();
Pstream::scatter(surfaceClosed_);
Pstream::broadcast(surfaceClosed_);
dict_.add("closed", surfaceClosed_);
// Delay calculating outside vol type since constructs tree. Is ok
@ -1720,8 +1720,8 @@ Foam::distributedTriSurfaceMesh::independentlyDistributedBbs
forAll(bbs, proci)
{
Pstream::listCombineGather(bbs[proci], plusEqOp<boundBox>());
Pstream::listCombineScatter(bbs[proci]);
}
Pstream::broadcast(bbs);
}
else if (distType_ == DISTRIBUTED)
{
@ -1769,8 +1769,8 @@ Foam::distributedTriSurfaceMesh::independentlyDistributedBbs
forAll(bbs, proci)
{
Pstream::listCombineGather(bbs[proci], plusEqOp<boundBox>());
Pstream::listCombineScatter(bbs[proci]);
}
Pstream::broadcast(bbs);
}
// //// Tbd. initial duplicate filtering of border points only
// if (distType_ == DISTRIBUTED)
@ -1967,8 +1967,8 @@ Foam::distributedTriSurfaceMesh::independentlyDistributedBbs
// forAll(bbs, proci)
// {
// Pstream::listCombineGather(bbs[proci], plusEqOp<boundBox>());
// Pstream::listCombineScatter(bbs[proci]);
// }
// Pstream::broadcast(bbs);
// }
else
{
@ -2070,8 +2070,8 @@ Foam::distributedTriSurfaceMesh::independentlyDistributedBbs
forAll(bbs, proci)
{
Pstream::listCombineGather(bbs[proci], plusEqOp<boundBox>());
Pstream::listCombineScatter(bbs[proci]);
}
Pstream::broadcast(bbs);
}
return bbs;
}