<tr class="memdesc:acd49d166b7903b3603a9fc48c355846f"><td class="mdescLeft"> </td><td class="mdescRight">Reset all residuals to infinity. <br /></td></tr>
<tr class="memdesc:a8febd6b513ef0bc3b69c796e00026faa"><td class="mdescLeft"> </td><td class="mdescRight">Reset all residuals to infinity, and change the number of residuals to check. <br /></td></tr>
<tr class="memdesc:a090cc9c9b89ddb40cb8fb3d90d2033cb"><td class="mdescLeft"> </td><td class="mdescRight">Roll the list with the residuals, and add a new residual to the end. <br /></td></tr>
<tr class="memdesc:a4e658fd2cf70531998e9819487d20bf1"><td class="mdescLeft"> </td><td class="mdescRight">Check of the sequence of <code>n</code> residuals is in descending order. <br /></td></tr>
<tr class="memdesc:a0ac7ea29823d228b6cadc9a63c45b3cd"><td class="mdescLeft"> </td><td class="mdescRight">Check of the sequence of <code>n</code> residuals are all below a tolerance. <br /></td></tr>
<div class="textblock"><p>Class to perform a residual check based on the last "n" iterations. </p>
<p>A typical usage is in dynamic simulations where equilibrium is checked based on a force residual. Fluctuations could however be responsible for this criterion to be triggered too early. By checking several time-steps such case can be avoided. </p>
<p class="definition">Definition at line <a class="el" href="Iterate_8h_source.html#l00027">27</a> of file <a class="el" href="Iterate_8h_source.html">Iterate.h</a>.</p>
</div><h2 class="groupheader">Constructor & Destructor Documentation</h2>
<tr><td class="paramname">n</td><td>Number of consecutive iterations to consider. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="Iterate_8h_source.html#l00034">34</a> of file <a class="el" href="Iterate_8h_source.html">Iterate.h</a>.</p>
</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if all <code>n</code> residuals are less than the tolerance. </dd></dl>
<p class="definition">Definition at line <a class="el" href="Iterate_8h_source.html#l00091">91</a> of file <a class="el" href="Iterate_8h_source.html">Iterate.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="Iterate_8h_source.html#l00099">99</a> of file <a class="el" href="Iterate_8h_source.html">Iterate.h</a>.</p>
<p>Check of the sequence of <code>n</code> residuals is in descending order. </p>
<dl class="section return"><dt>Returns</dt><dd><code>true</code> if the <code>n</code> residuals are in descending order. </dd></dl>
<p class="definition">Definition at line <a class="el" href="Iterate_8h_source.html#l00080">80</a> of file <a class="el" href="Iterate_8h_source.html">Iterate.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="Iterate_8h_source.html#l00108">108</a> of file <a class="el" href="Iterate_8h_source.html">Iterate.h</a>.</p>
<p class="definition">Definition at line <a class="el" href="Iterate_8h_source.html#l00043">43</a> of file <a class="el" href="Iterate_8h_source.html">Iterate.h</a>.</p>
<p>Reset all residuals to infinity, and change the number of residuals to check. </p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">n</td><td>Number of consecutive iterations to consider. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="Iterate_8h_source.html#l00053">53</a> of file <a class="el" href="Iterate_8h_source.html">Iterate.h</a>.</p>
<p>Roll the list with the residuals, and add a new residual to the end. </p>
<p>In Python code this function corresponds to:: </p><pre class="fragment"> residuals = residuals[1:] + [new_residual]
</pre><p> I.e. the residual of <code>n</code> iterations ago will be forgotten.</p>
<dl class="params"><dt>Parameters</dt><dd>
<table class="params">
<tr><td class="paramname">res</td><td>New residual to add to the list of residuals. </td></tr>
</table>
</dd>
</dl>
<p class="definition">Definition at line <a class="el" href="Iterate_8h_source.html#l00069">69</a> of file <a class="el" href="Iterate_8h_source.html">Iterate.h</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>