ENH: snappyHexMesh: make output on master processor

This commit is contained in:
mattijs
2013-09-26 10:44:29 +01:00
parent fe470ba3a8
commit aa7a93cb30

View File

@ -112,8 +112,6 @@ const
if (localCellI != -1)
{
Pout<< "Found point " << keepPoint << " in cell " << localCellI
<< " on processor " << Pstream::myProcNo() << endl;
globalCellI = globalCells.toGlobal(localCellI);
}
@ -130,6 +128,14 @@ const
<< exit(FatalError);
}
label procI = globalCells.whichProcID(globalCellI);
label procCellI = globalCells.toLocal(procI, globalCellI);
Info<< "Found point " << keepPoint << " in cell " << procCellI
<< " on processor " << procI << endl;
if (globalCells.isLocal(globalCellI))
{
cellLabels[i] = localCellI;