<div dir="ltr">Dear developers,<div><br></div><div><br><div></div><div><p style="margin:0px 0px 1.2em">In Quantum Espresso outputs, there are <code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">average # of iterations</code>printed after each SCF iteration.</p><pre style="white-space:pre-wrap;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin-top:1.2em;margin-bottom:1.2em"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;background-color:rgb(248,248,248);overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block">  365      Self-consistent Calculation
  366 
  367      iteration #  1     ecut=    45.00 Ry     beta= 0.40
  368      Davidson diagonalization with overlap
  369      ethr =  1.00E-02,  avg # of iterations =  2.0
</code></pre><p style="margin:0px 0px 1.2em">I looked into the source code, the comment says the avg_iter is <em>H*psi products</em></p><pre style="white-space:pre-wrap;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin-top:1.2em;margin-bottom:1.2em"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;background-color:rgb(248,248,248);overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block">```
PW/src/c_bands.f90

237  REAL(KIND=DP), INTENT(INOUT) :: avg_iter
238  !! average number of H*psi products
</code></pre><p style="margin:0px 0px 1.2em">However, it seems to present the number of other loops inside a SCF iteration:</p><pre style="white-space:pre-wrap;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin-top:1.2em;margin-bottom:1.2em"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;background-color:rgb(248,248,248);overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block">PW/src/c_bands.f90

242  REAL(KIND=DP) :: cg_iter, ppcg_iter, rmm_iter
243  ! (weighted) number of iterations in Conjugate-Gradient
244  ! (weighted) number of iterations in RMM-DIIS
</code></pre><p style="margin:0px 0px 1.2em">So, How do the <em>H*psi products </em>related to the average number of iterations? How to interpret this number?</p><p style="margin:0px 0px 1.2em"><br></p><p style="margin:0px 0px 1.2em">Thanks and regards,</p></div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font color="#999999"><b>Ziang Zhang</b></font><div><div><font color="#999999"><br></font></div><div><font color="#999999">Ph.D. Student in Applied Physics</font></div><div><font color="#999999">Computational Physics & Materials Science Lab<br></font></div><div><font color="#999999">Physical Science and Engineering Division</font></div><div><font color="#999999">3254-WS12, Building 3</font></div></div></div></div></div></div></div></div></div>

<br>
<div><hr></div><font face="Arial" size="1">This message and its contents, including attachments are intended solely for the original recipient. If you are not the intended recipient or have received this message in error, please notify me immediately and delete this message from your computer system. Any unauthorized use or distribution is prohibited. Please consider the environment before printing this email.</font>