diff --git a/applications/utilities/mesh/manipulation/checkMesh/printMeshStats.C b/applications/utilities/mesh/manipulation/checkMesh/printMeshStats.C index 2951cab590a4c70903d73f1a3a5d719774751dcb..874ebc3fb269162756e6cc3005b3bd6a6502ac22 100644 --- a/applications/utilities/mesh/manipulation/checkMesh/printMeshStats.C +++ b/applications/utilities/mesh/manipulation/checkMesh/printMeshStats.C @@ -70,7 +70,8 @@ void Foam::printMeshStats(const polyMesh& mesh, const bool allTopology) Info<< " faces: " << nFaces << nl << " internal faces: " << nIntFaces << nl << " cells: " << nCells << nl - << " faces per cell: " << scalar(nFaces + nIntFaces)/nCells << nl + << " faces per cell: " + << scalar(nFaces + nIntFaces)/max(1, nCells) << nl << " boundary patches: " << mesh.boundaryMesh().size() << nl << " point zones: " << mesh.pointZones().size() << nl << " face zones: " << mesh.faceZones().size() << nl