ENH: Improved AMI message output

This commit is contained in:
andy
2011-09-14 10:38:28 +01:00
parent eeb0007fcc
commit e8a288fc00

View File

@ -97,9 +97,10 @@ void Foam::AMIInterpolation<SourcePatch, TargetPatch>::checkPatches
boundBox bbSrc(srcPatch.points(), srcPatch.meshPoints()); boundBox bbSrc(srcPatch.points(), srcPatch.meshPoints());
boundBox bbTgt(tgtPatch.points(), tgtPatch.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 WarningIn
( (
@ -109,10 +110,11 @@ void Foam::AMIInterpolation<SourcePatch, TargetPatch>::checkPatches
"const primitivePatch&" "const primitivePatch&"
")" ")"
) << "Source and target patch bounding boxes are not similar" << nl ) << "Source and target patch bounding boxes are not similar" << nl
<< " src span : " << bbSrc.span() << nl << " source box span : " << bbSrc.span() << nl
<< " tgt span : " << bbTgt.span() << nl << " target box span : " << bbTgt.span() << nl
<< " source: " << bbSrc << nl << " source box : " << bbSrc << nl
<< " target: " << bbTgt << endl; << " target box : " << bbTgt << nl
<< " inflated target box : " << bbTgtInf << endl;
} }
} }