Skip to content
Snippets Groups Projects
Commit d25d4d28 authored by mattijs's avatar mattijs
Browse files

ENH: checkMesh: zero cell meshes

parent 6ef1fc78
Branches
Tags
No related merge requests found
......@@ -36,7 +36,7 @@ Foam::label Foam::checkTopology
label nTotCells = returnReduce(mesh.cells().size(), sumOp<label>());
// These are actually warnings, not errors.
if (nEmpty % nTotCells)
if (nTotCells && (nEmpty % nTotCells))
{
Info<< " ***Total number of faces on empty patches"
<< " is not divisible by the number of cells in the mesh."
......@@ -255,7 +255,7 @@ Foam::label Foam::checkTopology
{
regionSplit rs(mesh);
if (rs.nRegions() == 1)
if (rs.nRegions() <= 1)
{
Info<< " Number of regions: " << rs.nRegions() << " (OK)."
<< endl;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment