From 05a325d8897be0387a767f22c3a3adfdb4c9590b Mon Sep 17 00:00:00 2001 From: william Date: Mon, 9 Nov 2015 09:13:34 +0000 Subject: [PATCH] ENH: cyclicPeriodicAMI: Made tolerances relative to the number of overlaps. --- .../cyclicPeriodicAMIPolyPatch/cyclicPeriodicAMIPolyPatch.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/meshTools/AMIInterpolation/patches/cyclicPeriodicAMI/cyclicPeriodicAMIPolyPatch/cyclicPeriodicAMIPolyPatch.C b/src/meshTools/AMIInterpolation/patches/cyclicPeriodicAMI/cyclicPeriodicAMIPolyPatch/cyclicPeriodicAMIPolyPatch.C index ad7aaeea0f..158fbce113 100644 --- a/src/meshTools/AMIInterpolation/patches/cyclicPeriodicAMI/cyclicPeriodicAMIPolyPatch/cyclicPeriodicAMIPolyPatch.C +++ b/src/meshTools/AMIInterpolation/patches/cyclicPeriodicAMI/cyclicPeriodicAMIPolyPatch/cyclicPeriodicAMIPolyPatch.C @@ -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