From 3467a75993e2128b090f93b950249f0f5f9fc002 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Wed, 20 Jun 2012 04:42:19 +0100 Subject: [PATCH] ENH: AMIInterpolation: extraneous reduction --- .../AMIInterpolation/AMIInterpolation/AMIInterpolation.C | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C index 5acc8dfa4c4..ad5a974ed70 100644 --- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C +++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C @@ -149,13 +149,8 @@ void Foam::AMIInterpolation<SourcePatch, TargetPatch>::checkPatches const scalar maxBoundsError = 0.05; // check bounds of source and target - boundBox bbSrc(srcPatch.points(), srcPatch.meshPoints()); - reduce(bbSrc.min(), minOp<point>()); - reduce(bbSrc.max(), maxOp<point>()); - - boundBox bbTgt(tgtPatch.points(), tgtPatch.meshPoints()); - reduce(bbTgt.min(), minOp<point>()); - reduce(bbTgt.max(), maxOp<point>()); + boundBox bbSrc(srcPatch.points(), srcPatch.meshPoints(), true); + boundBox bbTgt(tgtPatch.points(), tgtPatch.meshPoints(), true); boundBox bbTgtInf(bbTgt); bbTgtInf.inflate(maxBoundsError); -- GitLab