final changes to fix halt

This commit is contained in:
Steve Plimpton
2016-10-18 11:16:28 -06:00
parent 1f1c87235a
commit 003581c6a8
3 changed files with 17 additions and 11 deletions

View File

@ -162,8 +162,7 @@ void FixHalt::end_of_step()
}
// hard halt -> exit LAMMPS
// soft halt -> trigger timer to break from run loop
// continue halt -> trigger time to exit only this run loop
// soft/continue halt -> trigger timer to break from run loop
// print message with ID of fix halt in case multiple instances
char str[128];
@ -183,6 +182,8 @@ void FixHalt::end_of_step()
void FixHalt::post_run()
{
// continue halt -> subsequent runs are allowd
if (eflag == CONTINUE) timer->reset_timeout();
}