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