mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -134,12 +134,12 @@ void Foam::ensightCells::clearOut()
|
||||
|
||||
void Foam::ensightCells::reduce()
|
||||
{
|
||||
// No listCombineGather, listCombineScatter for FixedList
|
||||
forAll(sizes_, typei)
|
||||
{
|
||||
sizes_[typei] = size(elemType(typei));
|
||||
Foam::reduce(sizes_[typei], sumOp<label>());
|
||||
}
|
||||
// Can reduce FixedList with sumOp<label> in a single operation
|
||||
Foam::reduce(sizes_, sumOp<label>());
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -163,12 +163,12 @@ void Foam::ensightFaces::clearOut()
|
||||
|
||||
void Foam::ensightFaces::reduce()
|
||||
{
|
||||
// No listCombineGather, listCombineScatter for FixedList
|
||||
forAll(sizes_, typei)
|
||||
{
|
||||
sizes_[typei] = size(elemType(typei));
|
||||
Foam::reduce(sizes_[typei], sumOp<label>());
|
||||
}
|
||||
// Can reduce FixedList with sumOp<label> in a single operation
|
||||
Foam::reduce(sizes_, sumOp<label>());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user