reset Modify::n_timeflag in post_run() so we won't skip computes defined between runs

This commit is contained in:
Axel Kohlmeyer
2020-02-11 00:30:09 -05:00
parent 23b7adc9b2
commit ed9c8b4ea0

View File

@ -527,6 +527,11 @@ void Modify::thermo_energy_atom(int nlocal, double *energy)
void Modify::post_run()
{
for (int i = 0; i < nfix; i++) fix[i]->post_run();
// must reset this to its default value, since computes may be added
// or removed between runs and with this change we will redirect any
// calls to addstep_compute() to addstep_compute_all() instead.
n_timeflag = -1;
}
/* ----------------------------------------------------------------------