From 8313a967cc3ed177a74e1ad7e2f17f064c2ae141 Mon Sep 17 00:00:00 2001 From: bramas <berenger.bramas@inria.fr> Date: Tue, 30 Dec 2014 16:00:15 +0100 Subject: [PATCH] Correct the bug found in the task plus dep version --- Src/GroupTree/FGroupTaskDepAlgorithm.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Src/GroupTree/FGroupTaskDepAlgorithm.hpp b/Src/GroupTree/FGroupTaskDepAlgorithm.hpp index 2ba0d1db3..3ec74f3f7 100644 --- a/Src/GroupTree/FGroupTaskDepAlgorithm.hpp +++ b/Src/GroupTree/FGroupTaskDepAlgorithm.hpp @@ -326,8 +326,9 @@ protected: subCellGroups[nbSubCellGroups] = (*iterChildCells); nbSubCellGroups += 1; while((*iterChildCells)->getEndingIndex() <= ((currentCells->getEndingIndex()<<3)+7) - && (++iterChildCells) != endChildCells - && (*iterChildCells)->getStartingIndex() <= (currentCells->getEndingIndex()<<3)+7 ){ + && (iterChildCells+1) != endChildCells + && (*(iterChildCells+1))->getStartingIndex() <= (currentCells->getEndingIndex()<<3)+7 ){ + (++iterChildCells); subCellGroups[nbSubCellGroups] = (*iterChildCells); nbSubCellGroups += 1; FAssertLF( nbSubCellGroups <= 9 ); @@ -505,8 +506,9 @@ protected: subCellGroups[nbSubCellGroups] = (*iterChildCells); nbSubCellGroups += 1; while((*iterChildCells)->getEndingIndex() <= ((currentCells->getEndingIndex()<<3)+7) - && (++iterChildCells) != endChildCells - && (*iterChildCells)->getStartingIndex() <= (currentCells->getEndingIndex()<<3)+7 ){ + && (iterChildCells+1) != endChildCells + && (*(iterChildCells+1))->getStartingIndex() <= (currentCells->getEndingIndex()<<3)+7 ){ + (++iterChildCells); subCellGroups[nbSubCellGroups] = (*iterChildCells); nbSubCellGroups += 1; FAssertLF( nbSubCellGroups <= 9 ); -- GitLab