Fixing the way to handle immigrant recovering objects.
[charm.git] / src / ck-core / ckcausalmlog.C
index 92ef43c2b8ce43126db752a49843fbe9c9d776d3..799e06d9ae749bddf4e7e5543e481811afe99bbd 100644 (file)
@@ -2983,6 +2983,8 @@ void _distributedLocationHandler(char *receivedMsg){
        pmem |gID;
        pmem |idx;
        CkLocMgr *mgr = (CkLocMgr*)CkpvAccess(_groupTable)->find(gID).getObj();
+       // CODING
+//     CkReductionMgr *reductionMgr = (CkReductionMgr*)CkpvAccess(_groupTable)->find(idx).getObj();
        donotCountMigration=1;
        mgr->resume(idx,pmem,CmiTrue);
        donotCountMigration=0;
@@ -2996,6 +2998,7 @@ void _distributedLocationHandler(char *receivedMsg){
        // adding object to the list of immigrant recovery objects
        CpvAccess(_immigrantRecObjs)->push_back((CkLocRec_local *)rec);
        CpvAccess(_numImmigrantRecObjs)++;
+       reductionMgr->incImmigrantRecObjs();
        
        CkVec<CkMigratable *> eltList;
        mgr->migratableList((CkLocRec_local *)rec,eltList);