TopoManager: return result from CmiGetHopsBetweenRanks C wrapper
authorPhil Miller <mille121@illinois.edu>
Fri, 20 Apr 2012 20:57:13 +0000 (15:57 -0500)
committerPhil Miller <mille121@illinois.edu>
Fri, 20 Apr 2012 20:57:13 +0000 (15:57 -0500)
src/util/TopoManager.C

index 894da4a269bfb434bffedf185e73ec8c45d5c073..560d5af2a905adb1ff39c6c01164f79f30a432bb 100644 (file)
@@ -431,7 +431,7 @@ void TopoManager::printAllocation(FILE *fp)
 extern "C" int CmiGetHopsBetweenRanks(int pe1, int pe2)
 {
     TopoManager topomgr;
-    topomgr.getHopsBetweenRanks(pe1, pe2);
+    return topomgr.getHopsBetweenRanks(pe1, pe2);
 }