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

@ -135,7 +135,7 @@ void Foam::vtk::writeListParallel
if (Pstream::master())
{
// Write master data - with value offset
const label offsetId = procOffset.offset(0);
const label offsetId = procOffset.localStart(0);
for (const label val : values)
{
vtk::write(fmt, val + offsetId);
@ -156,7 +156,7 @@ void Foam::vtk::writeListParallel
);
// With value offset
const label offsetId = procOffset.offset(proci);
const label offsetId = procOffset.localStart(proci);
for (const label val : recvData)
{
vtk::write(fmt, val + offsetId);