From: adam Date: Thu, 3 Feb 2011 15:24:36 +0000 (+0000) Subject: Improve performances of getCellsContainingPointsAlg X-Git-Tag: V6_main_FINAL~1086 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8b438c9d47d16663b54c7482355191e3f488d838;p=tools%2Fmedcoupling.git Improve performances of getCellsContainingPointsAlg --- diff --git a/src/MEDCoupling/MEDCouplingUMesh.cxx b/src/MEDCoupling/MEDCouplingUMesh.cxx index d07aff61c..6c2f1ab38 100644 --- a/src/MEDCoupling/MEDCouplingUMesh.cxx +++ b/src/MEDCoupling/MEDCouplingUMesh.cxx @@ -2172,16 +2172,14 @@ void MEDCouplingUMesh::getCellsContainingPointsAlg(const double *coords, const d const int *conn=_nodal_connec->getConstPointer(); const int *connI=_nodal_connec_index->getConstPointer(); double bb[2*SPACEDIM]; - for(int j=0;j::max(); bb[2*j+1]=-std::numeric_limits::max(); } BBTree myTree(&bbox[0],0,0,nbOfCells,-eps); for(int i=0;i candidates; myTree.getIntersectingElems(bb,candidates);