tetOverlapVolume: adjust tolerance

Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1347
This commit is contained in:
Henry
2015-03-05 18:57:38 +00:00
parent 891e41e7c7
commit 25ba73c1cc

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |
\\ / A nd | Copyright (C) 2012-2013 OpenFOAM Foundation \\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -36,7 +36,7 @@ License
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(tetOverlapVolume, 0); defineTypeNameAndDebug(tetOverlapVolume, 0);
} }
@ -64,7 +64,7 @@ Foam::scalar Foam::tetOverlapVolume::tetTetOverlapVol
tetPointRef::sumVolOp volInside; tetPointRef::sumVolOp volInside;
tetPointRef::dummyOp outside; tetPointRef::dummyOp outside;
if ((tetA.tet().mag() < SMALL) || (tetB.tet().mag() < SMALL)) if ((tetA.tet().mag() < SMALL*SMALL) || (tetB.tet().mag() < SMALL*SMALL))
{ {
return 0.0; return 0.0;
} }
@ -268,7 +268,6 @@ Foam::scalar Foam::tetOverlapVolume::cellCellOverlapVolumeMinDecomp
( (
const primitiveMesh& meshA, const primitiveMesh& meshA,
const label cellAI, const label cellAI,
const primitiveMesh& meshB, const primitiveMesh& meshB,
const label cellBI, const label cellBI,
const treeBoundBox& cellBbB const treeBoundBox& cellBbB