KSS calculation: diagonalized eig differ from gradient eig

GW, Bethe-Salpeter …

Moderators: maryam.azizi, bruneval

Locked
Mamikon Gulian
Posts: 20
Joined: Thu Dec 10, 2009 5:58 pm

KSS calculation: diagonalized eig differ from gradient eig

Post by Mamikon Gulian » Sat Feb 20, 2010 5:21 pm

Hello,

When calculating a KSS file I periodically get this warning every few k-points:

outkss.F90:1403:WARNING
The diagonalized eigenvalues differ by more than 10^-3 Hartree
with respect to the conjugated gradient values.

My questions: (1) If its calculating both the Conjugated Gradient values and Diagonalized values and then comparing, can I just get it to write out two KSS files instead of one, for each method? (that way I can really see what the difference between the two is). (2) How should I alleviate this difference? Should I use tighter convergence parameters? On wavefunctions? Energy?

Thanks,
Mamikon

bruneval
Posts: 40
Joined: Mon Aug 17, 2009 11:38 am

Re: KSS calculation: diagonalized eig differ from gradient eig

Post by bruneval » Mon Feb 22, 2010 10:59 am

Hello,

I think this message is not really robust. You should not carry too much attention to it.
Just make sure that your eigenvalues/wavefunctions are well converged within the CG technique.
Sorry for this sloppy reply.

Fabien

User avatar
gmatteo
Posts: 291
Joined: Sun Aug 16, 2009 5:40 pm

Re: KSS calculation: diagonalized eig differ from gradient eig

Post by gmatteo » Thu Feb 25, 2010 11:51 pm

The diagonalization step performed during the KSS generation can be seen as an additional SCF iteration.
The diagonalized eigenvalues and eigenfunctions are therefore close to the ones calculated during the
SCF (NSCF) run provided that the SCF (NSCF) cycle is very well converged.

You don't have your input file but I guess that only the high energy states produced
by the direct diagonalization differ from the conjugate gradient ones.
To get rid of the annoying message you might do the following:

* Use a stricter criterion for tolwfr (< 10^-16)
* Increase the number of bands (nband) as well as the value of nbdbuf such that
(nband - nbdbuf) spans the energy range you are planning to use for GW.

The highest states are indeed difficult to converge when iterative techniques (e.g CG) are used.
and the nbdbuf trick partly cures the problem.

Note that tolwfr is the recommended stopping criterion to be used to generate the KSS file,
even when the KSS is produced at the end of a SCF run.
Neither toldfe nor tolvrs are good estimators for the accuracy of the band structure
as they only probe the converge of the occupied states. Besides the energy functional
is variational with respect to density variations...

Hope it helps
Matteo Giantomassi

Mamikon Gulian
Posts: 20
Joined: Thu Dec 10, 2009 5:58 pm

Re: KSS calculation: diagonalized eig differ from gradient eig

Post by Mamikon Gulian » Fri Feb 26, 2010 4:31 am

Matteo, Fabien,

Thanks for your replies. I did feel that the warnings were not very dangerous, but wanted to take care of them anyway. I'll try out your suggestions next time I calculate a KSS file and post the results.

-Mamikon Gulian

Mamikon Gulian
Posts: 20
Joined: Thu Dec 10, 2009 5:58 pm

Re: KSS calculation: diagonalized eig differ from gradient eig

Post by Mamikon Gulian » Thu Mar 04, 2010 6:59 am

Just an update: I increased the convergence parameters and that made the warnings vanish, but as it turned out, this caused no difference in results- that is, the previous settings were already well converged despite the warnings. I guess the warnings were not essential.

Locked