Adding support for emigrant objects at reduction manager.
[charm.git] / src / ck-core / ckreduction.C
index c1e2ae7b0ae4d6262b877e079cd31b3102f337d6..d9d928b797b5d37f0babaa9187b278fdd0d786c4 100644 (file)
@@ -667,7 +667,7 @@ void CkReductionMgr::finishReduction(void)
   }
   //CkPrintf("[%d]finishReduction called for redNo %d with nContrib %d at %.6f\n",CkMyPe(),redNo, nContrib,CmiWallTimer());
 #if (defined(_FAULT_CAUSAL_))
-       if (nContrib<(lcount+adj(redNo).lcount)-numImmigrantRecObjs){
+       if (nContrib<(lcount+adj(redNo).lcount) - numImmigrantRecObjs + numEmigrantRecObjs){
         DEBR((AA"Need more local messages %d %d\n"AB,nContrib,(lcount+adj(redNo).lcount)));
                return;//Need more local messages
        }