Bug fix for single-cell mesh
This commit is contained in:
parent
f061215be0
commit
34def356ec
1 changed files with 41 additions and 38 deletions
|
@ -1353,6 +1353,8 @@ bool Foam::primitiveMesh::checkUpperTriangular
|
|||
}
|
||||
}
|
||||
|
||||
if (!nbr.empty())
|
||||
{
|
||||
nbr.sort();
|
||||
|
||||
// Now nbr holds the cellCells in incremental order. Check:
|
||||
|
@ -1404,6 +1406,7 @@ bool Foam::primitiveMesh::checkUpperTriangular
|
|||
nMultipleCells++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
reduce(error, orOp<bool>());
|
||||
reduce(nMultipleCells, sumOp<label>());
|
||||
|
|
Reference in a new issue