mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
COMP: pass as labelList as List<int> for MPI
This commit is contained in:
@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user