]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Some performance loss linked to users having non uniform numbering in source mesh.
authorageay <ageay>
Wed, 9 Jan 2013 15:50:48 +0000 (15:50 +0000)
committerageay <ageay>
Wed, 9 Jan 2013 15:50:48 +0000 (15:50 +0000)
src/INTERP_KERNEL/PolyhedronIntersectorP0P0.txx

index ba5ea83b8fac3613406424bae70799ed8f2a6702..e3a71c91ef084490932e0422ccfe6fc7bfb5694f 100644 (file)
@@ -84,7 +84,10 @@ namespace INTERP_KERNEL
       {
         double volume = 0.;
         for(typename std::vector<SplitterTetra<MyMeshType>*>::iterator iter = _tetra.begin(); iter != _tetra.end(); ++iter)
+          {
             volume += (*iter)->intersectSourceCell(*iterCellS);
+            (*iter)->clearVolumesCache();
+          }
         if(volume!=0.)
           res[targetCell].insert(std::make_pair(OTT<ConnType,numPol>::indFC(*iterCellS), volume));
       }