minor bug fix, move setinstance of router strategy
authorSameer Kumar <skumar2@uiuc.edu>
Fri, 21 May 2004 17:56:28 +0000 (17:56 +0000)
committerSameer Kumar <skumar2@uiuc.edu>
Fri, 21 May 2004 17:56:28 +0000 (17:56 +0000)
src/ck-com/EachToManyMulticastStrategy.C

index 35dc336d1d64c25e05a7f59d3ff7e9dd1b59e364..2d190e3a20fa4a958c0e8dac5b8cb906fd330f2a 100644 (file)
@@ -239,6 +239,7 @@ void EachToManyMulticastStrategy::pup(PUP::er &p){
        handlerId = CkRegisterHandler((CmiHandler)E2MHandler);
         int handler = CkRegisterHandler((CmiHandler)itrDoneHandler);
         
+        
         rstrat = new RouterStrategy(routerID, handler, npes, pelist);
         setConverseStrategy(rstrat);
         MyPe = rstrat->getProcMap()[CkMyPe()];
@@ -252,6 +253,8 @@ void EachToManyMulticastStrategy::beginProcessing(int numElements){
     int expectedDeposits = 0;
     MaxSectionID = 0;
 
+    rstrat->setInstance(getInstance());
+
     if(ainfo.isSourceArray()) 
         expectedDeposits = numElements;