errot check for BgLoadTraceSummary
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 18 Oct 2004 05:55:09 +0000 (05:55 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 18 Oct 2004 05:55:09 +0000 (05:55 +0000)
examples/pose/HiSim/Main/pgm.C

index b849401c49fa91ee193ebf8127f031253af573ba..d9ea70b867f1716de57159c5eaa48a376fdf174b 100644 (file)
@@ -29,7 +29,7 @@ main::main(CkArgMsg *m)
   config.readConfig(m);
 
   if(!config.use_transceiver) {
-  BgLoadTraceSummary("bgTrace", totalBGProcs, numX, numY, numZ, numCth, numWth, numPes);
+  if (-1==BgLoadTraceSummary("bgTrace", totalBGProcs, numX, numY, numZ, numCth, numWth, numPes)) CmiAbort("Failed");
   CkPrintf("bgtrace: totalBGProcs=%d X=%d Y=%d Z=%d #Cth=%d #Wth=%d #Pes=%d\n",
           totalBGProcs, numX, numY, numZ, numCth, numWth, numPes);
   netLength = numX;