first attempt to port fix halt to minimizations

This commit is contained in:
Axel Kohlmeyer
2018-10-19 07:26:49 -04:00
parent 4015b36a1a
commit cc6f1be82d
3 changed files with 9 additions and 2 deletions

View File

@ -143,6 +143,13 @@ void FixHalt::init()
/* ---------------------------------------------------------------------- */
void FixHalt::min_step(double, double *)
{
if ((update->ntimestep % nevery) == 0) end_of_step();
}
/* ---------------------------------------------------------------------- */
void FixHalt::end_of_step()
{
// variable evaluation may invoke computes so wrap with clear/add