CmiNumPes => CkNumPes for BigSim.
authorGengbin Zheng <gzheng@illinois.edu>
Fri, 27 Aug 2004 19:41:12 +0000 (19:41 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Fri, 27 Aug 2004 19:41:12 +0000 (19:41 +0000)
src/ck-com/BroadcastStrategy.C

index 63ea02fcafb7e65cc1002435beb7242f77205947..3138d462b7073b52baeab5e5ebf54fbc756819de 100644 (file)
@@ -103,7 +103,7 @@ void BroadcastStrategy::handleHypercube(char *msg){
     int i;
     int size = env->getTotalsize();
     
-    double logp = CmiNumPes();
+    double logp = CkNumPes();
     logp = log(logp)/log(2.0);
     logp = ceil(logp);
     
@@ -120,7 +120,7 @@ void BroadcastStrategy::handleHypercube(char *msg){
         //CkPrintf("%d --> %d, %d\n", CkMyPe(), p, newcycle); 
 
         env->setSrcPe(newcycle);
-        if(p < CmiNumPes()) {
+        if(p < CkNumPes()) {
             CmiSyncSendFn(p, size, msg);
         }
     }