]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
0020441: [CEA 349] P1P1 barycentric interpolators
authoreap <eap@opencascade.com>
Thu, 1 Oct 2009 05:33:36 +0000 (05:33 +0000)
committereap <eap@opencascade.com>
Thu, 1 Oct 2009 05:33:36 +0000 (05:33 +0000)
  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

index d3156696186298fa5f2c0c907b0b575e195498f2..2528b0e73a88ab9274d91c8f3861f883a1127188 100644 (file)
@@ -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;