From adb2c8c62a531eb51c77a76126c5eaab13325906 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 1 Oct 2009 05:33:36 +0000 Subject: [PATCH] 0020441: [CEA 349] P1P1 barycentric interpolators do not call intersectCells() if no source cells found - intersector->intersectCells(targetIdx,intersectElems,result); + if ( !intersectElems.empty() ) + intersector->intersectCells(targetIdx,intersectElems,result); --- src/INTERP_KERNEL/Interpolation3D.txx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/INTERP_KERNEL/Interpolation3D.txx b/src/INTERP_KERNEL/Interpolation3D.txx index d31566961..2528b0e73 100644 --- a/src/INTERP_KERNEL/Interpolation3D.txx +++ b/src/INTERP_KERNEL/Interpolation3D.txx @@ -299,7 +299,8 @@ namespace INTERP_KERNEL tree.getIntersectingElems(targetBox, intersectElems); - intersector->intersectCells(targetIdx,intersectElems,result); + if ( !intersectElems.empty() ) + intersector->intersectCells(targetIdx,intersectElems,result); } delete [] bboxes; -- 2.39.2