LAMMPS WWW Site - LAMMPS Documentation - LAMMPS Commands

restart command

Syntax:

restart 0
restart N root
restart N file1 file2 

Examples:

restart 0
restart 1000 poly.restart
restart 10000 poly.r.1 poly.r.2 

Description:

Write out a binary restart file every so many timesteps as a run proceeds. A value of 0 means do not write out restart files. Using one filename as an argument will create a series of filenames with a timestep suffix, e.g. the 2nd example above will create poly.restart.1000, poly.restart.2000, poly.restart.3000, etc. Using two filenames will produce only 2 restart files. LAMMPS will toggle between the 2 names as it writes successive restart files.

See the read_restart command for information about what is stored in a restart file.

Restart files can be read by a read_restart command to restart a simulation from a particular state. Because the file is binary (to enable exact restarts), it may not be readable on another machine. In this case, the restart2data program in the tools directory can be used to convert a restart file to an ASCII data file.

Restrictions: none

Related commands:

write_restart, read_restart

Default:

restart 0