Skip to content
Snippets Groups Projects
Commit fd2e8e50 authored by william's avatar william Committed by mattijs
Browse files

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

parent c8e2226f
Branches
Tags
1 merge request!3Feature periodic ami and xi dy m foam
......@@ -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
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment