]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Gauss imp1
authorageay <ageay>
Thu, 8 Nov 2012 11:52:45 +0000 (11:52 +0000)
committerageay <ageay>
Thu, 8 Nov 2012 11:52:45 +0000 (11:52 +0000)
src/MEDCoupling/MEDCouplingFieldDiscretization.cxx

index 8538521e6dec8c9c580083a821691547e6d44b6a..805c8d54281396cc5fab1fdcbf3440ce8bd59845 100644 (file)
@@ -1215,7 +1215,7 @@ DataArrayInt *MEDCouplingFieldDiscretizationGauss::computeTupleIdsToSelectFromCe
   int *retPtr=nbOfNodesPerCell->getPointer();
   const int *pt=_discr_per_cell->getConstPointer();
   int nbMaxOfLocId=(int)_loc.size();
-  for(int i=0;i<nbOfCells;i++,retPtr++)
+  for(int i=0;i<nbOfCells;i++,retPtr++,pt++)
     {
       if(*pt>=0 && *pt<nbMaxOfLocId)
         *retPtr=_loc[*pt].getNumberOfGaussPt();