Restart file after certain time

Hello Users,

In Gromacs, there is a runtime flag that tells the program to terminate and save a restart file after a certain time limit. Specifically it can be found here:

http://manual.gromacs.org/online/mdrun.html

The flag explanation:

“With option -maxh a simulation is terminated and a checkpoint file is written at the first neighbor search step where the run time exceeds -maxh*0.99 hours”

Does anyone know if this can be achieved in LAMMPS?

Thanks

nope - but we could do something similar by making
the "quit" command just terminate a run, when used within
a "run every" command. E.g.

variable t equal cpu
run 100000 every 1000 "if '$t > 3600' then quit"
write_restart foo.restart

Steve