From: ageay Date: Wed, 9 Jan 2013 15:50:48 +0000 (+0000) Subject: Some performance loss linked to users having non uniform numbering in source mesh. X-Git-Tag: V6_main_FINAL~421 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7f70fec622cea212c3bda89403ca7a49179f2efd;p=tools%2Fmedcoupling.git Some performance loss linked to users having non uniform numbering in source mesh. --- diff --git a/src/INTERP_KERNEL/PolyhedronIntersectorP0P0.txx b/src/INTERP_KERNEL/PolyhedronIntersectorP0P0.txx index ba5ea83b8..e3a71c91e 100644 --- a/src/INTERP_KERNEL/PolyhedronIntersectorP0P0.txx +++ b/src/INTERP_KERNEL/PolyhedronIntersectorP0P0.txx @@ -84,7 +84,10 @@ namespace INTERP_KERNEL { double volume = 0.; for(typename std::vector*>::iterator iter = _tetra.begin(); iter != _tetra.end(); ++iter) + { volume += (*iter)->intersectSourceCell(*iterCellS); + (*iter)->clearVolumesCache(); + } if(volume!=0.) res[targetCell].insert(std::make_pair(OTT::indFC(*iterCellS), volume)); }