<h2>Description<aclass="headerlink"href="#description"title="Permalink to this headline">¶</a></h2>
<p>Set the timestep counter to the specified value. This command
normally comes after the timestep has been set by reading a restart
file via the <aclass="reference internal"href="read_restart.html"><em>read_restart</em></a> command, or a previous
simulation advanced the timestep.</p>
<p>The <aclass="reference internal"href="read_data.html"><em>read_data</em></a> and <aclass="reference internal"href="create_box.html"><em>create_box</em></a>
commands set the timestep to 0; the <aclass="reference internal"href="read_restart.html"><em>read_restart</em></a>
command sets the timestep to the value it had when the restart file
was written.</p>
</div>
<divclass="section"id="restrictions">
<h2>Restrictions<aclass="headerlink"href="#restrictions"title="Permalink to this headline">¶</a></h2>
<blockquote>
<div>none</div></blockquote>
<p>This command cannot be used when any fixes are defined that keep track
of elapsed time to perform certain kinds of time-dependent operations.
Examples are the <aclass="reference internal"href="fix_deposit.html"><em>fix deposit</em></a> and <aclass="reference internal"href="fix_dt_reset.html"><em>fix dt/reset</em></a> commands. The former adds atoms on
specific timesteps. The latter keeps track of accumulated time.</p>
<p>Various fixes use the current timestep to calculate related
quantities. If the timestep is reset, this may produce unexpected
behavior, but LAMMPS allows the fixes to be defined even if the
timestep is reset. For example, commands which thermostat the system,
e.g. <aclass="reference internal"href="fix_nh.html"><em>fix nvt</em></a>, allow you to specify a target temperature
which ramps from Tstart to Tstop which may persist over several runs.
If you change the timestep, you may induce an instantaneous change in
the target temperature.</p>
<p>Resetting the timestep clears flags for <aclass="reference internal"href="compute.html"><em>computes</em></a> that
may have calculated some quantity from a previous run. This means
these quantity cannot be accessed by a variable in between runs until
a new run is performed. See the <aclass="reference internal"href="variable.html"><em>variable</em></a> command for
more details.</p>
</div>
<divclass="section"id="related-commands">
<h2>Related commands<aclass="headerlink"href="#related-commands"title="Permalink to this headline">¶</a></h2>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.