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();
|
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>());
|
||||||
|
|
Reference in a new issue