mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: protected division - fixes #3084
This commit is contained in:
@ -123,13 +123,13 @@ bool Foam::polyMesh::checkFaceOrthogonality
|
||||
reduce(severeNonOrth, sumOp<label>());
|
||||
reduce(errorNonOrth, sumOp<label>());
|
||||
|
||||
const scalar maxNonOrth = radToDeg(::acos(clamp(minDDotS, -1, 1)));
|
||||
const scalar aveNonOrth = radToDeg(::acos(clamp(sumDDotS/nSummed, -1, 1)));
|
||||
|
||||
dictionary& meshDict = const_cast<dictionary&>(data().meshDict());
|
||||
|
||||
if (nSummed > 0)
|
||||
{
|
||||
scalar maxNonOrth = radToDeg(::acos(clamp(minDDotS, -1, 1)));
|
||||
scalar aveNonOrth = radToDeg(::acos(clamp(sumDDotS/nSummed, -1, 1)));
|
||||
|
||||
meshDict.set("maxNonOrth", maxNonOrth);
|
||||
meshDict.set("aveNonOrth", aveNonOrth);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user