mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: use globalIndex localSize(), totalSize() in more places
- more explicit meaning than offset(), size() - respectively.
This commit is contained in:
@ -76,8 +76,8 @@ bool Foam::functionObjects::columnAverage::columnAverageField
|
||||
const labelList& cellToPatchFace = ms.cellToPatchFaceAddressing();
|
||||
|
||||
// Brute force: collect per-global-patchface on all processors
|
||||
Field<Type> regionField(globalFaces_().size(), Zero);
|
||||
labelList regionCount(globalFaces_().size(), 0);
|
||||
Field<Type> regionField(globalFaces_().totalSize(), Zero);
|
||||
labelList regionCount(globalFaces_().totalSize(), Zero);
|
||||
|
||||
forAll(cellToPatchFace, celli)
|
||||
{
|
||||
|
||||
@ -141,7 +141,7 @@ void Foam::functionObjects::externalCoupled::readColumns
|
||||
<< "Trying to read data for processor " << proci
|
||||
<< " row " << rowi
|
||||
<< ". Does your file have as many rows as there are"
|
||||
<< " patch faces (" << globalFaces.size()
|
||||
<< " patch faces (" << globalFaces.totalSize()
|
||||
<< ") ?" << exit(FatalIOError);
|
||||
}
|
||||
|
||||
@ -206,7 +206,7 @@ void Foam::functionObjects::externalCoupled::readLines
|
||||
<< "Trying to read data for processor " << proci
|
||||
<< " row " << rowi
|
||||
<< ". Does your file have as many rows as there are"
|
||||
<< " patch faces (" << globalFaces.size()
|
||||
<< " patch faces (" << globalFaces.totalSize()
|
||||
<< ") ?" << exit(FatalIOError);
|
||||
}
|
||||
|
||||
|
||||
@ -59,7 +59,7 @@ void Foam::functionObjects::nearWallFields::calcAddressing()
|
||||
// Global indexing
|
||||
globalIndex globalWalls(nPatchFaces);
|
||||
|
||||
DebugInFunction << "nPatchFaces: " << globalWalls.size() << endl;
|
||||
DebugInFunction << "nPatchFaces: " << globalWalls.totalSize() << endl;
|
||||
|
||||
// Construct cloud
|
||||
Cloud<findCellParticle> cloud
|
||||
|
||||
@ -563,7 +563,7 @@ bool Foam::functionObjects::streamLineBase::writeToFile()
|
||||
|
||||
const mapDistribute distMap
|
||||
(
|
||||
globalTrackIDs.size(),
|
||||
globalTrackIDs.totalSize(),
|
||||
std::move(sendMap),
|
||||
std::move(recvMap)
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user