mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
tetOverlapVolume: adjust tolerance
Resolves bug-report http://www.openfoam.org/mantisbt/view.php?id=1347
This commit is contained in:
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user