diff --git a/applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C b/applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C index b2a1469257..bf722cfbae 100644 --- a/applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C +++ b/applications/utilities/parallelProcessing/decomposePar/domainDecomposition.C @@ -831,11 +831,18 @@ bool Foam::domainDecomposition::writeDecomposition(const bool decomposeSets) // Statistics + Info<< nl << "Processor " << proci; - Info<< endl - << "Processor " << proci << nl - << " Number of cells = " << procMesh.nCells() - << endl; + if (procMesh.nCells()) + { + Info<< nl << " "; + } + else + { + Info<< ": "; + } + + Info<< "Number of cells = " << procMesh.nCells() << nl; maxProcCells = max(maxProcCells, procMesh.nCells()); @@ -865,9 +872,12 @@ bool Foam::domainDecomposition::writeDecomposition(const bool decomposeSets) } } - Info<< " Number of processor patches = " << nProcPatches << nl - << " Number of processor faces = " << nProcFaces << nl - << " Number of boundary faces = " << nBoundaryFaces << endl; + if (procMesh.nCells() && (nBoundaryFaces || nProcFaces)) + { + Info<< " Number of processor patches = " << nProcPatches << nl + << " Number of processor faces = " << nProcFaces << nl + << " Number of boundary faces = " << nBoundaryFaces << nl; + } totProcFaces += nProcFaces; totProcPatches += nProcPatches; diff --git a/src/OpenFOAM/meshes/polyMesh/polyMesh.C b/src/OpenFOAM/meshes/polyMesh/polyMesh.C index 6c44d9e8d1..de8d164ef7 100644 --- a/src/OpenFOAM/meshes/polyMesh/polyMesh.C +++ b/src/OpenFOAM/meshes/polyMesh/polyMesh.C @@ -325,15 +325,21 @@ Foam::polyMesh::polyMesh(const IOobject& io) boundary_.calcGeometry(); // Warn if global empty mesh - if (returnReduce(nPoints(), sumOp