mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Improved AMI message output
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user