STYLE: use globalIndex localSize(), totalSize() in more places

- more explicit meaning than offset(), size() - respectively.
This commit is contained in:
Mark Olesen
2022-02-16 11:15:44 +01:00
parent 055a7b29e0
commit 59dbee741f
21 changed files with 87 additions and 73 deletions

View File

@ -116,7 +116,7 @@ void Foam::faMeshReconstructor::calcAddressing
{
// Determine the respective local portions of the global ordering
labelList procTargets(globalFaceNum.size());
labelList procTargets(globalFaceNum.totalSize());
for (const label proci : Pstream::allProcs())
{
@ -128,7 +128,7 @@ void Foam::faMeshReconstructor::calcAddressing
}
labelList procStarts(globalFaceNum.offsets());
labelList procOrders(globalFaceNum.size());
labelList procOrders(globalFaceNum.totalSize());
for (const label globali : globalOrder)
{