@@ -522,8 +522,8 @@ Config::insertOptions()
522522 DEF_SECTION_HEADING (" Advanced Options - Debug" );
523523 DEF_ARG (" run-mode" , 0 , " MODE" , " Set run mode [ init | run | both (default)]" , runMode_, true , false , true );
524524 DEF_ARG (" interactive-console" , 0 , " ACTION" ,
525- " [EXPERIMENTAL] Set console to use for interactive mode. NOTE: This currently only works for serial jobs and "
526- " this option will be ignored for parallel runs." ,
525+ " [EXPERIMENTAL] Set console to use for interactive mode (overrides default console: sst.interactive.simpledebug). "
526+ " NOTE: This currently only works for serial jobs and will be ignored for parallel runs." ,
527527 interactive_console_, true , false , false );
528528 DEF_ARG_OPTVAL (" interactive-start" , 0 , " TIME" ,
529529 " [EXPERIMENTAL] Drop into interactive mode at specified simulated time. If no time is specified, or the time "
@@ -560,6 +560,10 @@ Config::insertOptions()
560560
561561 /* Advanced Features - Checkpoint */
562562 DEF_SECTION_HEADING (" Advanced Options - Checkpointing (EXPERIMENTAL)" );
563+ DEF_FLAG (" checkpoint-enable" , 0 ,
564+ " Allows checkpoints to be triggered from the interactive debug console. "
565+ " This option is not needed if checkpoint-wall-period, checkpoint-period, or checkpoint-sim-period are used." ,
566+ checkpoint_enable_, false , false , false );
563567 DEF_ARG (" checkpoint-wall-period" , 0 , " PERIOD" ,
564568 " Set approximate frequency for checkpoints to be generated in terms of wall (real) time. PERIOD can be "
565569 " specified in hours, minutes, and seconds with "
@@ -649,6 +653,7 @@ Config::setOptionFromModel(const std::string& entryName, const std::string& valu
649653bool
650654Config::canInitiateCheckpoint ()
651655{
656+ if (checkpoint_enable_.value == true ) return true ;
652657 if ( checkpoint_wall_period_.value != 0 ) return true ;
653658 if ( checkpoint_sim_period_.value != " " ) return true ;
654659 return false ;
0 commit comments