Fix: symmetrize charge density in reciprocal space in any case#3081
Fix: symmetrize charge density in reciprocal space in any case#3081dyzheng merged 7 commits intodeepmodeling:developfrom
Conversation
Currently yes, but I think it's better to keep it in case of future usage. |
hongriTianqi
left a comment
There was a problem hiding this comment.
The number of warnings in CI test increased from 56 to 87. Please treat the CI case reference if needed.
To avoid warnings will be conflict with the demand of @pxlxingliang : if results with symmetry=0 are used as the reference to run test cases with symmetry=1, the warnings will be inevitable unless loosing the threshold. |
Sorry, I don't understand why the warnings will be inevitable. |
The magnitude of the energy difference between symmetry=0 and symmetry=1 could be around 1e-3 Ry due to the charge density symmetrization. See some results I've tested before: https://xmywuqhxb0.feishu.cn/docx/MAAadv569onfU0xtbc5cEFwjnRh?from=from_copylink |
I suggest to change reference from "symmetry=0" to "symmetry=1" in these cases. |
|
I wonder why |
It's because the total time limit for case tests are 1500 seconds. |
Some cases (such as 204_NO_KP_AFM : 110 s vs 17 s) used much more time than before. @maki49 the result of develop branch is same as symmetry=-1 ! |
dyzheng
left a comment
There was a problem hiding this comment.
Please fix the bugs in CI
Is it possible that it's a convergence to a more stable state (with lower energy and smaller stress) rather than a bug? (I'm not sure, maybe more tests are needed...) Another point: in LCAO cases, a round trip of FFT can cause a loss of precision. Here's the log that I only do a round trip of FFT without any charge density symmetrization: A possible solution is:
Since the LCAO-FFT problem is particular in ABACUS (that we cannot refer to VASP and QE), I think it better to leave it an open question for further tests and discussion, with no need to block merging this PR for current usage. |
I don't agree your point, the critical point is this case is anti-ferromagnetic material, I tested "ecutwfc 100" and KPT: 6 6 6 for both "nspin 1" and "nspin 2". You can test by yourself~ |
You're right. This problem arises from the loop of primitive cells in supercell during reciprocal-space charge density symmetrization. The primitive cell analysis doesn't consider atom magmoms, which gives more primitive cells than the right answer.
|
|
Thanks for your excelIent work for fixing symmetry bugs! |


rhog_symmetryoccurs whenecutwfcis extremely low.