ENH: AMIInterpolation: extraneous reduction
This commit is contained in:
parent
8476c1228a
commit
3467a75993
@ -149,13 +149,8 @@ void Foam::AMIInterpolation<SourcePatch, TargetPatch>::checkPatches
|
|||||||
const scalar maxBoundsError = 0.05;
|
const scalar maxBoundsError = 0.05;
|
||||||
|
|
||||||
// check bounds of source and target
|
// check bounds of source and target
|
||||||
boundBox bbSrc(srcPatch.points(), srcPatch.meshPoints());
|
boundBox bbSrc(srcPatch.points(), srcPatch.meshPoints(), true);
|
||||||
reduce(bbSrc.min(), minOp<point>());
|
boundBox bbTgt(tgtPatch.points(), tgtPatch.meshPoints(), true);
|
||||||
reduce(bbSrc.max(), maxOp<point>());
|
|
||||||
|
|
||||||
boundBox bbTgt(tgtPatch.points(), tgtPatch.meshPoints());
|
|
||||||
reduce(bbTgt.min(), minOp<point>());
|
|
||||||
reduce(bbTgt.max(), maxOp<point>());
|
|
||||||
|
|
||||||
boundBox bbTgtInf(bbTgt);
|
boundBox bbTgtInf(bbTgt);
|
||||||
bbTgtInf.inflate(maxBoundsError);
|
bbTgtInf.inflate(maxBoundsError);
|
||||||
|
Loading…
Reference in New Issue
Block a user