From 7f70fec622cea212c3bda89403ca7a49179f2efd Mon Sep 17 00:00:00 2001 From: ageay Date: Wed, 9 Jan 2013 15:50:48 +0000 Subject: [PATCH] Some performance loss linked to users having non uniform numbering in source mesh. --- src/INTERP_KERNEL/PolyhedronIntersectorP0P0.txx | 3 +++ 1 file changed, 3 insertions(+) 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)); } -- 2.39.2