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 // Note: handle compression ourselves since size cannot
// be determined without actually uncompressing // 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 readAndSend
( (
filePaths[proci], filePaths[proci],
labelList(1, proci), labelList(one{}, proci),
pBufs pBufs
); );
} }

View File

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

View File

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

View File

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