mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: bundle Pstream:: AllGather methods
- bundles frequently used 'gather/scatter' patterns more consistently. - combineAllGather -> combineGather + broadcast - listCombineAllGather -> listCombineGather + broadcast - mapCombineAllGather -> mapCombineGather + broadcast - allGatherList -> gatherList + scatterList - reduce -> gather + broadcast (ie, allreduce) - The allGatherList currently wraps gatherList/scatterList, but may be replaced with a different algorithm in the future. STYLE: PstreamCombineReduceOps.H is mostly unneeded now
This commit is contained in:
@ -177,10 +177,12 @@ void Foam::patchSeedSet::calcSamples
|
||||
|
||||
// 2. Reduce on master. Select nearest processor.
|
||||
|
||||
// Find nearest. Combine on master.
|
||||
Pstream::listCombineGather(nearest, mappedPatchBase::nearestEqOp());
|
||||
Pstream::broadcast(nearest);
|
||||
|
||||
// Find nearest - globally consistent
|
||||
Pstream::listCombineAllGather
|
||||
(
|
||||
nearest,
|
||||
mappedPatchBase::nearestEqOp()
|
||||
);
|
||||
|
||||
// 3. Pick up my local faces that have won
|
||||
|
||||
|
||||
Reference in New Issue
Block a user