changes to make smp restart work
[charm.git] / src / ck-core / init.C
index d9503f9260080376d6fe4edc9b925fbc526e2d73..7a705cafb8e0cbba59b1468f99b3558f955df537 100644 (file)
@@ -248,7 +248,7 @@ static inline void _parseCommandLineOpts(char **argv)
   if(CmiGetArgString(argv,"+restart",&_restartDir))
       faultFunc = CkRestartMain;
 #if __FAULT__
-  if (CmiGetArgIntDesc(argv,"+restartaftercrash",&cur_restart_phase,"restarting this processor after a crash")){       
+  if (CmiGetArgIntDesc(argv,"+restartaftercrash",&CpvAccess(_curRestartPhase),"restarting this processor after a crash")){     
 # if CMK_MEM_CHECKPOINT
       faultFunc = CkMemRestart;
 # endif