Commit 502fdec
Fix&Refactor: soc force/stress error for LCAO code, refactor the force/stress code into operator (#5381)
* Refactor&Fix: soc force&stress for LCAO
* Fix: nspin2 error
* Fix: lack of switch_dmr
* Test: add coverage of force/stress for SOC, and delete useless code
* [pre-commit.ci lite] apply automatic fixes
* Fix&Refactor: error of NSPIN=2 and refactor DensityMatrix class
* Fix: reference of forces in Gamma_only cases
* [pre-commit.ci lite] apply automatic fixes
* Fix: change reference of Gamma-only case and SOC case
* Fix: nb2d default error with NSPIN=4
* Fix: delete useless code
---------
Co-authored-by: dyzheng <[email protected]>
Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>1 parent d81cb46 commit 502fdec
File tree
32 files changed
+1199
-1594
lines changed- source
- module_elecstate
- module_dm
- test
- module_hamilt_lcao/hamilt_lcaodft
- operator_lcao
- module_lr/dm_trans
- tests
- deepks/602_NO_deepks_d_H2O_md_lda2pbe
- integrate
- 240_NO_KP_15_SO
- 260_NO_DJ_PK_PU_SO
- 308_NO_GO_CF_RE
- 320_NO_GO_MD_NVT
- 934_NO_Si2_dzp_neq_GPU
- 934_NO_Si2_dzp_neq_ns2_GPU
- 934_NO_Si2_tzdp_neq_GPU
- 934_NO_Si2_tzdp_neq_ns2_GPU
32 files changed
+1199
-1594
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
| 233 | + | |
233 | 234 | | |
234 | 235 | | |
235 | 236 | | |
| |||
571 | 572 | | |
572 | 573 | | |
573 | 574 | | |
574 | | - | |
575 | | - | |
576 | 575 | | |
577 | 576 | | |
578 | 577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments