From 89f2cda3abe9010d3994802080950a64af92a5ba Mon Sep 17 00:00:00 2001 From: mattijs <> Date: Tue, 8 Dec 2020 13:57:42 +0000 Subject: [PATCH 1/5] ENH: mpi: use per-application communicator. --- .../redistributePar/redistributePar.C | 2 +- src/OpenFOAM/db/IOstreams/Pstreams/UPstream.C | 6 +- src/OpenFOAM/db/IOstreams/Pstreams/UPstream.H | 59 +- src/OpenFOAM/global/argList/argList.C | 49 +- .../polyMesh/globalMeshData/globalIndexI.H | 2 +- .../polyMesh/globalMeshData/globalMeshData.C | 8 +- .../mapPolyMesh/mapDistribute/mapDistribute.C | 60 +- .../mapPolyMesh/mapDistribute/mapDistribute.H | 26 +- .../mapDistribute/mapDistributeBase.C | 260 +++-- .../mapDistribute/mapDistributeBase.H | 35 +- .../mapDistributeBaseTemplates.C | 245 +++-- src/Pstream/mpi/UPstream.C | 174 ++- ...tureCoupledBaffleMixedFvPatchScalarField.C | 173 ++- ...tureCoupledBaffleMixedFvPatchScalarField.H | 10 +- src/finiteVolume/Make/files | 3 +- .../mappedField/mappedFieldFvPatchField.C | 2 +- .../mappedMixedFieldFvPatchField.C | 233 ++++ .../mappedMixedFieldFvPatchField.H | 234 ++++ .../mappedMixedFieldFvPatchFields.C | 44 + .../mappedMixedFieldFvPatchFields.H | 51 + .../mappedField/mappedPatchFieldBase.C | 589 ++++++++++- .../mappedField/mappedPatchFieldBase.H | 99 +- .../mappedFixedValueFvPatchField.C | 44 +- .../mappedFixedValueFvPatchField.H | 13 +- .../mappedMixed/mappedMixedFvPatchField.C | 242 +++++ .../mappedMixed/mappedMixedFvPatchField.H | 232 ++++ .../mappedMixed/mappedMixedFvPatchFields.C | 44 + .../mappedMixed/mappedMixedFvPatchFields.H | 51 + src/functionObjects/utilities/Make/files | 2 + .../utilities/syncObjects/syncObjects.C | 228 ++++ .../utilities/syncObjects/syncObjects.H | 178 ++++ .../syncObjects/syncObjectsTemplates.C | 33 + .../faceAreaWeightAMI/faceAreaWeightAMI.C | 8 +- .../nearestFaceAMI/nearestFaceAMI.C | 4 +- .../mappedPolyPatch/mappedPatchBase.C | 996 ++++++++++++++---- .../mappedPolyPatch/mappedPatchBase.H | 189 +++- .../mappedPolyPatch/mappedPatchBaseI.H | 28 +- .../mappedPatchBaseTemplates.C | 153 ++- .../inverseDistanceCellCellStencil.C | 4 +- .../distributedTriSurfaceMesh.C | 16 +- src/sampling/meshToMesh/meshToMesh.C | 8 +- .../specie/thermo/thermo/thermoI.H | 5 + 42 files changed, 4245 insertions(+), 597 deletions(-) create mode 100644 src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedMixedFieldFvPatchField/mappedMixedFieldFvPatchField.C create mode 100644 src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedMixedFieldFvPatchField/mappedMixedFieldFvPatchField.H create mode 100644 src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedMixedFieldFvPatchField/mappedMixedFieldFvPatchFields.C create mode 100644 src/finiteVolume/fields/fvPatchFields/derived/mappedField/mappedMixedFieldFvPatchField/mappedMixedFieldFvPatchFields.H create mode 100644 src/finiteVolume/fields/fvPatchFields/derived/mappedMixed/mappedMixedFvPatchField.C create mode 100644 src/finiteVolume/fields/fvPatchFields/derived/mappedMixed/mappedMixedFvPatchField.H create mode 100644 src/finiteVolume/fields/fvPatchFields/derived/mappedMixed/mappedMixedFvPatchFields.C create mode 100644 src/finiteVolume/fields/fvPatchFields/derived/mappedMixed/mappedMixedFvPatchFields.H create mode 100644 src/functionObjects/utilities/syncObjects/syncObjects.C create mode 100644 src/functionObjects/utilities/syncObjects/syncObjects.H create mode 100644 src/functionObjects/utilities/syncObjects/syncObjectsTemplates.C diff --git a/applications/utilities/parallelProcessing/redistributePar/redistributePar.C b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C index 45dd9210c9..e81ca5ef3d 100644 --- a/applications/utilities/parallelProcessing/redistributePar/redistributePar.C +++ b/applications/utilities/parallelProcessing/redistributePar/redistributePar.C @@ -511,9 +511,9 @@ void writeProcAddressing patchDistMap.constructMap(), patchDistMap.constructHasFlip(), patchMap, + label(-1), eqOp