From 62fc3bbc33dd3894a0af2927b9cb71693617c0a0 Mon Sep 17 00:00:00 2001 From: Mark Olesen Date: Thu, 10 Mar 2022 21:54:52 +0100 Subject: [PATCH] STYLE: broadcast instead of combineScatter/listCombineScatter/mapCombineScatter - these are the same thing now and 'broadcast' expresses the intention more directly/consistently --- .../extrudeToRegionMesh/extrudeToRegionMesh.C | 11 ++++++----- .../conformalVoronoiMeshConformToSurface.C | 4 ++-- .../mesh/generation/snappyHexMesh/snappyHexMesh.C | 2 +- .../mesh/manipulation/checkMesh/checkTopology.C | 2 +- .../mesh/manipulation/createPatch/createPatch.C | 2 +- .../splitMeshRegions/splitMeshRegions.C | 5 ++--- .../redistributePar/parLagrangianRedistributor.C | 4 ++-- .../parLagrangianRedistributorFields.C | 2 +- .../foamToEnsight/findCloudFields.H | 2 +- .../dataConversion/foamToVTK/convertLagrangian.H | 10 ++++++---- .../lagrangian/particleTracks/particleTracks.C | 2 +- .../particleTracksSamplerTemplates.C | 2 +- .../postChannel/channelIndexTemplates.C | 2 +- .../utilities/preProcessing/setFields/setFields.C | 5 ++--- .../surfaceMeshExtract/surfaceMeshExtract.C | 4 +--- .../MSwindows/fileMonitor/fileMonitor.C | 6 +++--- src/OSspecific/POSIX/fileMonitor/fileMonitor.C | 6 +++--- src/OpenFOAM/db/IOobjectList/IOobjectList.C | 2 +- .../extrudePatchMesh/extrudePatchMesh.C | 2 +- src/dynamicMesh/fvMeshSubset/fvMeshSubset.C | 2 +- .../polyTopoChange/hexRef8/hexRef8.C | 4 ++-- src/fileFormats/ensight/part/cells/ensightCells.C | 4 ++-- src/fileFormats/ensight/part/faces/ensightFaces.C | 4 ++-- .../turbulentDFSEMInletFvPatchVectorField.C | 2 +- src/functionObjects/field/Curle/Curle.C | 2 +- .../field/columnAverage/columnAverageTemplates.C | 4 ++-- .../extractEulerianParticles.C | 4 ++-- .../regionSizeDistribution.C | 4 ++-- src/functionObjects/forces/forces/forces.C | 4 ++-- .../forces/propellerInfo/propellerInfo.C | 4 ++-- .../lagrangian/vtkCloud/vtkCloudTemplates.C | 2 +- .../utilities/areaWrite/areaWrite.C | 2 +- .../utilities/areaWrite/areaWriteTemplates.C | 2 +- src/lagrangian/basic/Cloud/CloudIO.C | 2 +- .../CellZoneInjection/CellZoneInjection.C | 2 +- .../PatchInjection/patchInjectionBase.C | 2 +- .../movement/lumpedPointMovement.C | 7 +++---- .../snappyHexMesh/meshRefinement/meshRefinement.C | 15 +++++++++------ .../meshRefinement/meshRefinementBaffles.C | 10 +++++----- .../snappyHexMeshDriver/snappyRefineDriver.C | 12 ++++++------ .../mappedPolyPatch/mappedPatchBase.C | 6 +++--- src/meshTools/regionSplit2D/regionSplit2D.C | 2 +- .../cellSources/nearestToCell/nearestToCell.C | 2 +- .../planeToFaceZone/planeToFaceZone.C | 14 +++++++++----- .../pointSources/nearestToPoint/nearestToPoint.C | 2 +- .../NURBS3DVolume/NURBS3DVolume/NURBS3DVolume.C | 4 ++-- .../cellVolumeWeightCellCellStencil.C | 4 ++-- .../inverseDistanceCellCellStencil.C | 4 ++-- .../trackingInverseDistanceCellCellStencil.C | 2 +- src/overset/regionsToCell/findRefCells.C | 4 ++-- .../multiLevelDecomp/multiLevelDecomp.C | 5 +++-- .../distributedTriSurfaceMesh.C | 10 +++++----- .../singleLayerRegion/singleLayerRegion.C | 2 +- src/sampling/probes/patchProbes.C | 2 +- src/sampling/probes/patchProbesTemplates.C | 4 ++-- src/sampling/probes/probesTemplates.C | 4 ++-- src/sampling/sampledSet/cloud/cloudSet.C | 8 ++++---- .../sampledSet/patchCloud/patchCloudSet.C | 2 +- src/sampling/sampledSet/patchSeed/patchSeedSet.C | 2 +- src/sampling/sampledSet/sampledSets/sampledSets.C | 2 +- .../sampledSet/sampledSets/sampledSetsImpl.C | 14 +++++++------- .../sampledMeshedSurface/sampledMeshedSurface.C | 2 +- .../sampledSurfaces/sampledSurfaces.C | 2 +- .../distanceSurface/distanceSurfaceFilter.C | 6 +++--- src/sampling/surface/isoSurface/isoSurfacePoint.C | 2 +- .../TDACChemistryModel/TDACChemistryModel.C | 2 +- .../solarLoad/faceReflecting/faceReflecting.C | 8 ++++---- .../radiationModels/viewFactor/viewFactor.C | 11 +++++------ 68 files changed, 153 insertions(+), 148 deletions(-) diff --git a/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C b/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C index c11783e342..0eee01dc5a 100644 --- a/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C +++ b/applications/utilities/mesh/generation/extrude/extrudeToRegionMesh/extrudeToRegionMesh.C @@ -313,7 +313,7 @@ void deleteEmptyPatches(fvMesh& mesh) { masterNames = patches.names(); } - Pstream::scatter(masterNames); + Pstream::broadcast(masterNames); labelList oldToNew(patches.size(), -1); @@ -662,9 +662,10 @@ void countExtrudePatches // Synchronise decision. Actual numbers are not important, just make // sure that they're > 0 on all processors. Pstream::listCombineGather(zoneSidePatch, plusEqOp