added error checking for BgLoadTraceSummary
authorGengbin Zheng <gzheng@illinois.edu>
Mon, 18 Oct 2004 05:43:24 +0000 (05:43 +0000)
committerGengbin Zheng <gzheng@illinois.edu>
Mon, 18 Oct 2004 05:43:24 +0000 (05:43 +0000)
examples/pose/HiSim/Main/TCsim.C

index 0daffc994c1dd7d88f47d144f335e590b992390f..f1ca37de59447603b513b8badb732db57f6fe04d 100644 (file)
@@ -182,7 +182,7 @@ BGproc::BGproc(BGprocMsg *m)
 
   nodePID = m->nodePID;                // node pose index
   useAntimethods();
-  BgLoadTraceSummary("bgTrace", totalProcs, numX, numY, numZ, numCth, numWth, numPes);
+  if (-1==BgLoadTraceSummary("bgTrace", totalProcs, numX, numY, numZ, numCth, numWth, numPes)) CmiAbort("Failed");
   
   int* allNodeOffsets = BgLoadOffsets(totalProcs,numPes);
   BgTimeLineRec tline;