From 6ee4cbe5da624e388828eaa9b212eed48c02a8c0 Mon Sep 17 00:00:00 2001
From: Martin Khannouz <martin.khannouz@inria.fr>
Date: Mon, 4 Apr 2016 10:37:00 +0200
Subject: [PATCH] Fix a bug in the saving of task in mpi explicit

When  SCALFMM_SIMGRID_TASKNAMEPARAMS was enable, in the m2m mpi, a
variable was incremented too soon.
---
 Src/GroupTree/Core/FGroupTaskStarpuMpiAlgorithm.hpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Src/GroupTree/Core/FGroupTaskStarpuMpiAlgorithm.hpp b/Src/GroupTree/Core/FGroupTaskStarpuMpiAlgorithm.hpp
index 0307e9803..3452763ef 100644
--- a/Src/GroupTree/Core/FGroupTaskStarpuMpiAlgorithm.hpp
+++ b/Src/GroupTree/Core/FGroupTaskStarpuMpiAlgorithm.hpp
@@ -1837,7 +1837,6 @@ protected:
 
                         task->dyn_handles[2] = remoteCellGroups[idxLevel+1][firstOtherBlock + nbSubCellGroups].handleSymb;
                         task->dyn_handles[3] = remoteCellGroups[idxLevel+1][firstOtherBlock + nbSubCellGroups].handleUp;
-                        nbSubCellGroups += 1;
 
                         // put the right codelet
                         task->cl = &m2m_cl;
@@ -1872,6 +1871,7 @@ protected:
 												 comm.processId());
     #endif
     #endif
+                        nbSubCellGroups += 1;
                         FAssertLF(starpu_task_submit(task) == 0);
                     }
                 }
-- 
GitLab