Bug fix for single-cell mesh

This commit is contained in:
Hrvoje Jasak 2011-10-10 12:19:20 +01:00
parent f061215be0
commit 34def356ec

View file

@ -1353,6 +1353,8 @@ bool Foam::primitiveMesh::checkUpperTriangular
} }
} }
if (!nbr.empty())
{
nbr.sort(); nbr.sort();
// Now nbr holds the cellCells in incremental order. Check: // Now nbr holds the cellCells in incremental order. Check:
@ -1404,6 +1406,7 @@ bool Foam::primitiveMesh::checkUpperTriangular
nMultipleCells++; nMultipleCells++;
} }
} }
}
reduce(error, orOp<bool>()); reduce(error, orOp<bool>());
reduce(nMultipleCells, sumOp<label>()); reduce(nMultipleCells, sumOp<label>());