Skip to content
Snippets Groups Projects
Commit 3d49abab authored by laurence's avatar laurence
Browse files

ENH: if the face area is less than ROOTVSMALL then return vector::zero

parent 3ad25a12
Branches
Tags
No related merge requests found
......@@ -118,13 +118,12 @@ void Foam::primitiveMesh::makeFaceCentresAndAreas
sumAc += a*c;
}
// This is to deal with zero-area faces. Mark very small faces
// to be detected in e.g., processorPolyPatch.
if (sumA < ROOTVSMALL)
{
// Sum of area too small. No chance of reliably calculating
// centroid so fallback to average.
fCtrs[facei] = fCentre;
fAreas[facei] = 0.5*sumN;
fAreas[facei] = vector::zero;
}
else
{
......
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