From e8a288fc003a7f632adf034d27f8347ffc984c76 Mon Sep 17 00:00:00 2001 From: andy Date: Wed, 14 Sep 2011 10:38:28 +0100 Subject: [PATCH] ENH: Improved AMI message output --- .../AMIInterpolation/AMIInterpolation.C | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C index e5abcf818f..aa638ebd38 100644 --- a/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C +++ b/src/meshTools/AMIInterpolation/AMIInterpolation/AMIInterpolation.C @@ -97,9 +97,10 @@ void Foam::AMIInterpolation::checkPatches boundBox bbSrc(srcPatch.points(), srcPatch.meshPoints()); boundBox bbTgt(tgtPatch.points(), tgtPatch.meshPoints()); - bbTgt.inflate(maxBoundsError); + boundBox bbTgtInf(bbTgt); + bbTgtInf.inflate(maxBoundsError); - if (!bbTgt.contains(bbSrc)) + if (!bbTgtInf.contains(bbSrc)) { WarningIn ( @@ -109,10 +110,11 @@ void Foam::AMIInterpolation::checkPatches "const primitivePatch&" ")" ) << "Source and target patch bounding boxes are not similar" << nl - << " src span : " << bbSrc.span() << nl - << " tgt span : " << bbTgt.span() << nl - << " source: " << bbSrc << nl - << " target: " << bbTgt << endl; + << " source box span : " << bbSrc.span() << nl + << " target box span : " << bbTgt.span() << nl + << " source box : " << bbSrc << nl + << " target box : " << bbTgt << nl + << " inflated target box : " << bbTgtInf << endl; } }