[QE-developers] interpretation of avg # of iterations

Ziang Zhang ziang.zhang at kaust.edu.sa
Thu Apr 28 10:40:46 CEST 2022


Dear developers,


In Quantum Espresso outputs, there are average # of iterationsprinted after
each SCF iteration.

  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

I looked into the source code, the comment says the avg_iter is *H*psi
products*

```
PW/src/c_bands.f90

237  REAL(KIND=DP), INTENT(INOUT) :: avg_iter
238  !! average number of H*psi products

However, it seems to present the number of other loops inside a SCF
iteration:

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

So, How do the *H*psi products *related to the average number of
iterations? How to interpret this number?


Thanks and regards,
*Ziang Zhang*

Ph.D. Student in Applied Physics
Computational Physics & Materials Science Lab
Physical Science and Engineering Division
3254-WS12, Building 3

-- 

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.quantum-espresso.org/pipermail/developers/attachments/20220428/9598d982/attachment-0001.html>


More information about the developers mailing list