mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: cyclicPeriodicAMI: Made tolerances relative to the number of overlaps.
This commit is contained in:
@ -363,8 +363,8 @@ void Foam::cyclicPeriodicAMIPolyPatch::resetAMI
|
|||||||
// Check that both patches have replicated an integer number of times
|
// Check that both patches have replicated an integer number of times
|
||||||
if
|
if
|
||||||
(
|
(
|
||||||
mag(srcSum - floor(srcSum + 0.5)) > matchTolerance()
|
mag(srcSum - floor(srcSum + 0.5)) > srcSum*matchTolerance()
|
||||||
|| mag(tgtSum - floor(tgtSum + 0.5)) > matchTolerance()
|
|| mag(tgtSum - floor(tgtSum + 0.5)) > tgtSum*matchTolerance()
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
FatalErrorIn
|
FatalErrorIn
|
||||||
|
|||||||
Reference in New Issue
Block a user