ENH: cyclicPeriodicAMI: Made tolerances relative to the number of overlaps.

This commit is contained in:
william 2015-11-09 09:13:34 +00:00 committed by mattijs
parent 73f41cf1f6
commit 05a325d889

View File

@ -363,8 +363,8 @@ void Foam::cyclicPeriodicAMIPolyPatch::resetAMI
// Check that both patches have replicated an integer number of times
if
(
mag(srcSum - floor(srcSum + 0.5)) > matchTolerance()
|| mag(tgtSum - floor(tgtSum + 0.5)) > matchTolerance()
mag(srcSum - floor(srcSum + 0.5)) > srcSum*matchTolerance()
|| mag(tgtSum - floor(tgtSum + 0.5)) > tgtSum*matchTolerance()
)
{
FatalErrorIn