From 117c5d27a8cafa1419b2039e512b195f995a1cba Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 22 Jan 2014 13:58:29 +0000 Subject: [PATCH] BUG: AMI - use min instead of max when calculating area error --- .../patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C index fa333246f8..b8284d438e 100644 --- a/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C +++ b/src/meshTools/AMIInterpolation/patches/cyclicAMI/cyclicAMIPolyPatch/cyclicAMIPolyPatch.C @@ -187,7 +187,7 @@ void Foam::cyclicAMIPolyPatch::calcTransforms } scalar areaError = - max(errorPos, errorNeg)/(mag(area1) + ROOTVSMALL); + min(errorPos, errorNeg)/(mag(area1) + ROOTVSMALL); if (areaError > matchTolerance()) {