From 23bfbfdd32cca9b8fc0229b7a261376ee52df6d7 Mon Sep 17 00:00:00 2001
From: bramas <berenger.bramas@inria.fr>
Date: Mon, 15 Sep 2014 15:41:16 +0200
Subject: [PATCH] Debug group algo

---
 Src/GroupTree/FGroupSeqAlgorithm.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Src/GroupTree/FGroupSeqAlgorithm.hpp b/Src/GroupTree/FGroupSeqAlgorithm.hpp
index 5e94bd41d..11467dc4b 100644
--- a/Src/GroupTree/FGroupSeqAlgorithm.hpp
+++ b/Src/GroupTree/FGroupSeqAlgorithm.hpp
@@ -277,7 +277,7 @@ protected:
             while(iterParticles != endParticles && iterCells != endCells){
                 { // Can be a task(in:iterCells, inout:iterParticles)
                     const MortonIndex blockStartIdx = (*iterCells)->getStartingIndex();
-                    const MortonIndex blockEndIdx = (*iterCells)->getStartingIndex();
+                    const MortonIndex blockEndIdx = (*iterCells)->getEndingIndex();
 
                     for(MortonIndex mindex = blockStartIdx ; mindex < blockEndIdx ; ++mindex){
                         CellClass* cell = (*iterCells)->getCell(mindex);
-- 
GitLab