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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user