<h2>Description<a class="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 <a class="reference internal" href="read_restart.html"><em>read_restart</em></a> command, or a previous
simulation advanced the timestep.</p>
<p>The <a class="reference internal" href="read_data.html"><em>read_data</em></a> and <a class="reference internal" href="create_box.html"><em>create_box</em></a>
commands set the timestep to 0; the <a class="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>
<div class="section" id="restrictions">
<h2>Restrictions<a class="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 <a class="reference internal" href="fix_deposit.html"><em>fix deposit</em></a> and <a class="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. <a class="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 <a class="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 <a class="reference internal" href="variable.html"><em>variable</em></a> command for
more details.</p>
</div>
<div class="section" id="related-commands">
<h2>Related commands<a class="headerlink" href="#related-commands" title="Permalink to this headline">¶</a></h2>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/snide/sphinx_rtd_theme">theme</a> provided by <a href="https://readthedocs.org">Read the Docs</a>.