updated topo object creation function to the latest version.
[charm.git] / src / conv-ldb / cldb.neighbor.c
index bc9f1808ab47ee5c1f0c76414492ba52cec18ba4..19e050d8b5b77afa79d85049bcd3ae27c71b8088 100644 (file)
@@ -423,7 +423,7 @@ static void CldComputeNeighborData()
     sprintf(str, "SeedLB> Fatal error: Unknown topology: %s", _lbtopo);
     CmiAbort(str);
   }
-  topo = topofn();
+  topo = topofn(CmiNumPes());
   npe = getTopoMaxNeighbors(topo);
   pes = (int *)malloc(npe*sizeof(int));
   getTopoNeighbors(topo, CmiMyPe(), pes, &npe);