Unverified Commit ed9c8b4e authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

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

parent 23b7adc9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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;
}

/* ----------------------------------------------------------------------