From b15cf81217be3d6ca203a6bca9df41fc94914d32 Mon Sep 17 00:00:00 2001 From: mattijs Date: Tue, 9 Apr 2013 12:09:55 +0100 Subject: [PATCH] ENH: autoSnapDriverFeature: protect for zero sized faces --- .../autoHexMesh/autoHexMeshDriver/autoSnapDriverFeature.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriverFeature.C b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriverFeature.C index cecee33cef..37e61cbbb7 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriverFeature.C +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/autoSnapDriverFeature.C @@ -767,7 +767,7 @@ void Foam::autoSnapDriver::binFeatureFace ) const { // What to do with very far attraction? For now just ignore the face - if (magSqr(faceDisp) < sqr(snapDist)) + if (magSqr(faceDisp) < sqr(snapDist) && mag(faceSurfaceNormal) > VSMALL) { const point pt = fc + faceDisp;