BUG: AMI - use min instead of max when calculating area error

This commit is contained in:
andy
2014-01-22 13:58:29 +00:00
parent a6792e6e00
commit 117c5d27a8

View File

@ -187,7 +187,7 @@ void Foam::cyclicAMIPolyPatch::calcTransforms
} }
scalar areaError = scalar areaError =
max(errorPos, errorNeg)/(mag(area1) + ROOTVSMALL); min(errorPos, errorNeg)/(mag(area1) + ROOTVSMALL);
if (areaError > matchTolerance()) if (areaError > matchTolerance())
{ {