diff --git a/src/meshTools/AMIInterpolation/patches/cyclicPeriodicAMI/cyclicPeriodicAMIPolyPatch/cyclicPeriodicAMIPolyPatch.C b/src/meshTools/AMIInterpolation/patches/cyclicPeriodicAMI/cyclicPeriodicAMIPolyPatch/cyclicPeriodicAMIPolyPatch.C index 5ac1b35015..ad7aaeea0f 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 + matchTolerance())) > matchTolerance() - || mag(tgtSum - floor(tgtSum + matchTolerance())) > matchTolerance() + mag(srcSum - floor(srcSum + 0.5)) > matchTolerance() + || mag(tgtSum - floor(tgtSum + 0.5)) > matchTolerance() ) { FatalErrorIn