ENH: cyclicPeriodicAMI: Made tolerances relative to the number of overlaps.
This commit is contained in:
parent
73f41cf1f6
commit
05a325d889
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user