Skip to content

Commit 3ad6206

Browse files
author
cclib
committed
See cclib/cclib@a964332 from refs/heads/master
1 parent 6d536ff commit 3ad6206

4 files changed

Lines changed: 28 additions & 1 deletion

File tree

_sources/data_notes.rst.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,18 @@ optdone
513513

514514
A list that indexes which elements of `atomcoords`_ represent converged geometries.
515515

516+
optstatus
517+
---------
518+
519+
A list of integers representing the status of each step in an optimisation. The possible optimisation statuses are defined in bit value notation to allow for coding for multiple states and are given by:
520+
521+
* ``OPT_UNKNOWN = 0b000 = 0`` is the default and means optimisation is in progress.
522+
* ``OPT_NEW = 0b001 = 1`` is set for every new optimisation (e.g. PES, IRCs, etc.)
523+
* ``OPT_DONE = 0b010 = 2`` is set for the last step of an optimisation that converged.
524+
* ``OPT_UNCONVERGED = 0b100 = 4`` is set for every unconverged step (e.g. should be mutually exclusive with ``OPT_DONE``)
525+
526+
So, to robustly check if step ``i`` has converged, one should check ``data.optstatus[i] & OPT_DONE`` instead of ``data.optstatus[i] == OPT_DONE``.
527+
516528
scancoords
517529
----------
518530

contents.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@
150150
<li class="toctree-l2"><a class="reference internal" href="data_notes.html#nmo">nmo</a></li>
151151
<li class="toctree-l2"><a class="reference internal" href="data_notes.html#nmrtensors">nmrtensors</a></li>
152152
<li class="toctree-l2"><a class="reference internal" href="data_notes.html#optdone">optdone</a></li>
153+
<li class="toctree-l2"><a class="reference internal" href="data_notes.html#optstatus">optstatus</a></li>
153154
<li class="toctree-l2"><a class="reference internal" href="data_notes.html#scancoords">scancoords</a></li>
154155
<li class="toctree-l2"><a class="reference internal" href="data_notes.html#scanenergies">scanenergies</a></li>
155156
<li class="toctree-l2"><a class="reference internal" href="data_notes.html#scannames">scannames</a></li>

data_notes.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@
9191
<li class="toctree-l2"><a class="reference internal" href="#nmo">nmo</a></li>
9292
<li class="toctree-l2"><a class="reference internal" href="#nmrtensors">nmrtensors</a></li>
9393
<li class="toctree-l2"><a class="reference internal" href="#optdone">optdone</a></li>
94+
<li class="toctree-l2"><a class="reference internal" href="#optstatus">optstatus</a></li>
9495
<li class="toctree-l2"><a class="reference internal" href="#scancoords">scancoords</a></li>
9596
<li class="toctree-l2"><a class="reference internal" href="#scanenergies">scanenergies</a></li>
9697
<li class="toctree-l2"><a class="reference internal" href="#scannames">scannames</a></li>
@@ -607,6 +608,19 @@ <h2>nmrtensors<a class="headerlink" href="#nmrtensors" title="Link to this headi
607608
<h2>optdone<a class="headerlink" href="#optdone" title="Link to this heading"></a></h2>
608609
<p>A list that indexes which elements of <a class="reference internal" href="#atomcoords">atomcoords</a> represent converged geometries.</p>
609610
</section>
611+
<section id="optstatus">
612+
<h2>optstatus<a class="headerlink" href="#optstatus" title="Link to this heading"></a></h2>
613+
<p>A list of integers representing the status of each step in an optimisation. The possible optimisation statuses are defined in bit value notation to allow for coding for multiple states and are given by:</p>
614+
<blockquote>
615+
<div><ul class="simple">
616+
<li><p><code class="docutils literal notranslate"><span class="pre">OPT_UNKNOWN</span> <span class="pre">=</span> <span class="pre">0b000</span> <span class="pre">=</span> <span class="pre">0</span></code> is the default and means optimisation is in progress.</p></li>
617+
<li><p><code class="docutils literal notranslate"><span class="pre">OPT_NEW</span> <span class="pre">=</span> <span class="pre">0b001</span> <span class="pre">=</span> <span class="pre">1</span></code> is set for every new optimisation (e.g. PES, IRCs, etc.)</p></li>
618+
<li><p><code class="docutils literal notranslate"><span class="pre">OPT_DONE</span> <span class="pre">=</span> <span class="pre">0b010</span> <span class="pre">=</span> <span class="pre">2</span></code> is set for the last step of an optimisation that converged.</p></li>
619+
<li><p><code class="docutils literal notranslate"><span class="pre">OPT_UNCONVERGED</span> <span class="pre">=</span> <span class="pre">0b100</span> <span class="pre">=</span> <span class="pre">4</span></code> is set for every unconverged step (e.g. should be mutually exclusive with <code class="docutils literal notranslate"><span class="pre">OPT_DONE</span></code>)</p></li>
620+
</ul>
621+
</div></blockquote>
622+
<p>So, to robustly check if step <code class="docutils literal notranslate"><span class="pre">i</span></code> has converged, one should check <code class="docutils literal notranslate"><span class="pre">data.optstatus[i]</span> <span class="pre">&amp;</span> <span class="pre">OPT_DONE</span></code> instead of <code class="docutils literal notranslate"><span class="pre">data.optstatus[i]</span> <span class="pre">==</span> <span class="pre">OPT_DONE</span></code>.</p>
623+
</section>
610624
<section id="scancoords">
611625
<h2>scancoords<a class="headerlink" href="#scancoords" title="Link to this heading"></a></h2>
612626
<p>An array containing the geometries for each step of shape <code class="docutils literal notranslate"><span class="pre">[number</span> <span class="pre">of</span> <span class="pre">scan</span> <span class="pre">steps,</span> <span class="pre">number</span> <span class="pre">of</span> <span class="pre">atoms,</span> <span class="pre">3]</span></code>. In the case of an unrelaxed scan this is equivalent to <a class="reference internal" href="#atomcoords">atomcoords</a>, however this is not the case for a relaxed scan as a geometry optimization is performed at each scan step.</p>

searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)