change CkAssert to CkAbort
authorGengbin Zheng <gzheng@illinois.edu>
Thu, 31 May 2012 23:31:49 +0000 (18:31 -0500)
committerGengbin Zheng <gzheng@illinois.edu>
Thu, 31 May 2012 23:31:49 +0000 (18:31 -0500)
src/ck-core/ckmemcheckpoint.C

index de78b42bbeb254dd57f0b9aadfac2811fb283a05..734e15623070d5e227db64ecd02e81c7798cd7c9 100644 (file)
@@ -1117,9 +1117,10 @@ static void askProcDataHandler(char *msg)
 #if CMK_MEM_CHECKPOINT
     int diePe = *(int *)(msg+CmiMsgHeaderSizeBytes);
     CkPrintf("[%d] restartBcastHandler called with '%d' cur_restart_phase:%d at time %f.\n",CmiMyPe(),diePe, CpvAccess(_curRestartPhase), CkWallTimer());
-    if (CpvAccess(procChkptBuf) == NULL) 
+    if (CpvAccess(procChkptBuf) == NULL)  {
       CkPrintf("[%d] no checkpoint found for processor %d. This could be due to a crash before the first checkpointing.\n", CkMyPe(), diePe);
-    CmiAssert(CpvAccess(procChkptBuf)!=NULL);
+      CkAbort("no checkpoint found");
+    }
     envelope *env = (envelope *)(UsrToEnv(CpvAccess(procChkptBuf)));
     CmiAssert(CpvAccess(procChkptBuf)->pe == diePe);