-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
scf total energy when U+V are non-zero is different between QE and QE+SIRIUS #774
Comments
This small difference is ok. The GGA XC implementation is slighlty different between QE and LibXC. Whas is important is that forces and stress are similar. |
I initially started this comparison testing of forces & stresses (QE vs QE_SIRIUS) using a non-zero Hubbard U for the Hubbard atoms to evaluate (a) the total forces and (b) the Hubbard contribution to forces. |
Updating the issue with more results for different values of Hubbard U and V.
|
A factor 2 was missing in the calculation of the kinetic energy (the one-electron contribution). q-e-sirius now works fine for U \neq 0 V = 0. |
Should be fixed by PR #788. The mistake was a factor 2.0 during the calculation of the hubbard U contribution to the hubbard potential. The generalized version of Hubbard (reduce to dudarev version) is on by default. |
Testing results (@mtaillefumier):
**Note that the energies were correct even before the fix (#788). The difference in magnetization is discussed in #786
|
New round of tests should be done with electronic-structure/q-e-sirius#60 |
@toxa81 I'm checking this... |
Reporting below results after repeating some tests.
The values in the tables are
I'll add more soon |
Something is wrong with NiO. In CI/CD it passes dft+u+v with lower threshold for total energy. |
In ReFrame tests, for example this workflow, lines 359-376, there are no DFT+U +V tests that run (not yet, at least). I'm checking them locally |
UPDATE for NiO Codes used:
Reporting
The biggest difference is still on the order of mRy |
I did "complex occupation matrix" experiment. For this change in QE:
I run Forces looks fine. Hubbard stress has a minor difference. @mtaillefumier I would say it's a border case of being a bug. |
@anton, indeed, I get almost perfect agreement in total energy with the change in PR #1009
|
A few more
And almost identical stresses (difference only on the last -8th- digit) For PAW-PP, the difference is expected since after extensive testing of DFT scf (without Hubbard), it was shown that the total energies differ by |
@toxa81 I think we can finally close this... |
The total energies calculated using QE and QE-SIRIUS when the Hubbard U & V values are non-zero are different:
I'm using the input file of example10 (LiCoO2, non-magnetic insulator) as found in
q-e/HP/examples
https://gitlab.com/QEF/q-e/-/tree/develop/HP/examples.The Hubbard U & V parameters are both changed from 0.0001 to 3.0
The input file, pseudopotentials, execution script and output files are available here: non_zero_U_V.zip
The version of QE used is 7.1
QE-SIRIUS was installed via spack so the branch used is
q-e-sirius@develop-ristretto
andsirius@develop
.The output files contain the exact commit hashes of the executables used.
For comparison, if the U & V values are not changed and thus example10 runs as provided (U, V = 0.0001), then QE and QE-SIRIUS calculate total energies as below:
The text was updated successfully, but these errors were encountered: