diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C index 0e2fcd07ce..f9676fcbe6 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/refinementParameters/refinementParameters.C @@ -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;