avoid abort when timeout appears in temper commands

This commit is contained in:
Axel Kohlmeyer
2019-08-01 06:11:05 -04:00
parent 75c1e28566
commit 207976f4e9
3 changed files with 6 additions and 10 deletions

View File

@ -215,12 +215,11 @@ void Temper::command(int narg, char **arg)
for (int iswap = 0; iswap < nswaps; iswap++) {
if (timer->is_timeout()) break;
timer->init_timeout();
// run for nevery timesteps
timer->init_timeout();
update->integrate->run(nevery);
if (timer->is_timeout()) break;
// compute PE
// notify compute it will be called at next swap