COMP: fix label ambiguity

This commit is contained in:
Mark Olesen
2020-11-25 12:38:07 +01:00
parent 501cd35351
commit 1fa4221bc8
4 changed files with 7 additions and 7 deletions

View File

@ -657,7 +657,7 @@ Foam::fileOperations::masterUncollatedFileOperation::read
{
// Note: handle compression ourselves since size cannot
// be determined without actually uncompressing
readAndSend(fPath, labelList(1, proci), pBufs);
readAndSend(fPath, labelList(one{}, proci), pBufs);
}
}
}
@ -2390,7 +2390,7 @@ Foam::fileOperations::masterUncollatedFileOperation::NewIFstream
readAndSend
(
filePaths[proci],
labelList(1, proci),
labelList(one{}, proci),
pBufs
);
}

View File

@ -968,21 +968,21 @@ void Foam::addPatchCellLayer::globalEdgeInfo
mesh,
meshEdgeToFace,
maxEqOp<label>(),
-1
label(-1)
);
syncTools::syncEdgeList
(
mesh,
meshEdgeToPatch,
maxEqOp<label>(),
-1
label(-1)
);
syncTools::syncEdgeList
(
mesh,
meshEdgeToZone,
maxEqOp<label>(),
-1
label(-1)
);
// // Note: flipMap not yet done. Needs edge orientation. This is handled
// // later on.

View File

@ -714,7 +714,7 @@ bool Foam::vtk::internalMeshWriter::writeProcIDs()
// Per-processor ids
for (const int proci : Pstream::allProcs())
{
vtk::write(format(), proci, procMaps.localSize(proci));
vtk::write(format(), label(proci), procMaps.localSize(proci));
}
format().flush();

View File

@ -689,7 +689,7 @@ bool Foam::vtk::patchMeshWriter::writeProcIDs()
// Per-processor ids
for (const int proci : Pstream::allProcs())
{
vtk::write(format(), proci, procSizes.localSize(proci));
vtk::write(format(), label(proci), procSizes.localSize(proci));
}
good = true;