Fixed a small bug
authorAmit Sharma <asharma6@uiuc.edu>
Tue, 17 May 2005 04:39:08 +0000 (04:39 +0000)
committerAmit Sharma <asharma6@uiuc.edu>
Tue, 17 May 2005 04:39:08 +0000 (04:39 +0000)
src/ck-ldb/TopoCentLB.C

index f40febfa074b65f654298a2acde28c46531aa26b..f1895e0fcedbc50792682c0b83407df03ab740d5 100644 (file)
@@ -20,8 +20,8 @@
 #define beta PER_BYTE_SEND_OVERHEAD_DEFAULT     /*Long-message time per byte, seconds*/
 #define DEG_THRES 0.50
 
-#define MAX_EDGE 0
-#define RAND_COMM 0
+//#define MAX_EDGE
+//#define RAND_COMM
 #define make_mapping 0
 
 CreateLBFunc_Def(TopoCentLB,"Balance objects based on the network topology");
@@ -565,14 +565,6 @@ void TopoCentLB :: work(CentralLB::LDStats *stats,int count)
                n->num_objs++;
        }
 
-       int **bytesComm;
-       bytesComm = new int*[count];
-       for(i=0;i<count;i++){
-               bytesComm[i] = new int[count];
-               for(j=0;j<count;j++)
-                       bytesComm[i][j]=0;
-       }
-
        //CkPrintf("num comm:%d\n",stats->n_comm);
        int *addedComm=new int[count];