COMP: pass as labelList as List<int> for MPI

This commit is contained in:
Kutalmis Bercin
2023-12-08 12:24:13 +00:00
parent b4f150b095
commit 1844f87a0d

View File

@ -30,6 +30,7 @@ License
#include "GAMGInterface.H"
#include "processorGAMGInterface.H"
#include "cyclicLduInterface.H"
#include "PrecisionAdaptor.H"
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
@ -510,6 +511,8 @@ void Foam::GAMGAgglomeration::procAgglomerateLduAddressing
procBoundaryMap_[levelIndex]
)
);
const labelList localSizes = data.localSizes();
const labelList& localStarts = data.offsets();
// Make space
procBoundaryMap_[levelIndex].setSize(procIDs.size());
@ -520,9 +523,10 @@ void Foam::GAMGAgglomeration::procAgglomerateLduAddressing
UPstream::scatter
(
data.values().cdata(),
data.localSizes(),
data.offsets(),
// Pass as List<int> for MPI
ConstPrecisionAdaptor<int, label, List>(localSizes).cref(),
ConstPrecisionAdaptor<int, label, List>(localStarts).cref(),
bMap.data(),
bMap.size(),