Commit 3f9e462
Stabilize RI RPA/EXX and Ewald EXX method merge on develop (deepmodeling#7019)
* Stabilize RI RPA/EXX merge on develop
- integrate the RI/RPA post-SCF workflow with develop
- restore Coulomb/input-output handling and sparse matrix precision
- fix nspin=2 and TRS symmetry output regressions
* Fix read_input test build regressions
* Fix restart include in input conversion
* Register new input parameters
* Fix complie errors
* fix: restore latname default to "user_defined_lattice"
The default was accidentally changed to "none", causing all tests
without explicit latname to fail at STRU parsing with
"do not use LATTICE_VECTORS along with explicit specification of lattice type".
* fix: restore EXX parameter registration from develop, append RI params
The previous merge accidentally changed exx_singularity_correction
reset logic (lc_pbe etc from "spencer" to "massidda") and removed
metadata, causing 08_EXX integration tests to fail. Restore the
develop version and append new RI parameters (shrink_abfs_pca_thr,
shrink_lu_inv_thr, exx_coul_moment, exx_rotate_abfs,
exx_multip_moments_threshold, out_unshrinked_v).
* fix: restore filter_empty_orbs in Exx_LRI::init to fix 53_GO_LR_HF test
The removal of filter_empty_orbs calls caused empty orbital shells to be
retained in lcaos and abfs vectors, altering RI exchange integrals for
all EXX calculations including standard HF used by LR-TDDFT.
* fix: inline filter_empty_orbs for abfs to fix build error
The PR removed the filter_empty_orbs function from Construct_Orbs and
inlined its logic into change_orbs() for lcaos. The previous commit
incorrectly called the now-deleted function. This commit inlines the
same filtering logic directly for abfs to restore the empty orbital
shell removal without depending on the deleted function.
* fix: restore RI infrastructure files to develop and fix spencer Rcut formula
- Restore LRI_CV, Matrix_Orbs11/21/22, exx_abfs-construct_orbs,
exx_opt_orb, ABFs_Construct-PCA to develop versions to minimize diff
- Fix spencer Rcut: use get_nkstot_full() without /nspin0 division
(nkstot_full already excludes spin doubling)
- Fix shared_ptr<ORB_gaunt_table> usage in Exx_LRI, RPA_LRI
- Fix ewald_Vq compilation errors
- Fix exx_opt_orb-print.cpp to match develop API
* fix: update 53_GO_LR_HF reference value for corrected spencer Rcut
The spencer Rcut formula was corrected to not divide by nspin0
(get_nkstot_full() already excludes spin doubling), which changes
the excitation energy result from 6.050430 to 2.574437.
* fix: update 53_GO_LR_HF ref to CI-verified value 5.646360
The previous ref (2.574437) was from fisherd which lacks LibXC,
producing different results. Use CI environment's actual value.
* Fix shrink RPA overlap setup and add regression coverage
* Compare RPA regression files by absolute value
* Reduce solid RPA regression output size
* Drop no-op LRI_CV_Tools formatting changes
* Drop no-op Inverse_Matrix formatting change
---------
Co-authored-by: AroundPeking <gonghuanjing@iphy.ac.cn>
Co-authored-by: Mohan Chen <mohanchen@pku.edu.cn>1 parent cc50db0 commit 3f9e462
90 files changed
Lines changed: 6455 additions & 568 deletions
File tree
- docs/advanced/input_files
- source
- source_cell
- test
- source_hamilt/module_xc
- source_hsolver
- source_io
- module_ctrl
- module_hs
- module_parameter
- test_serial
- test
- support
- source_lcao
- module_ri
- module_exx_symmetry
- tests
- 08_EXX
- 53_GO_LR_HF
- 56_GO_RPA_OUTPUT
- 57_KP_RPA_SHRINK
- integrate
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
304 | 306 | | |
305 | 307 | | |
306 | 308 | | |
| |||
316 | 318 | | |
317 | 319 | | |
318 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
319 | 325 | | |
320 | 326 | | |
321 | 327 | | |
| |||
2945 | 2951 | | |
2946 | 2952 | | |
2947 | 2953 | | |
| 2954 | + | |
| 2955 | + | |
| 2956 | + | |
| 2957 | + | |
| 2958 | + | |
| 2959 | + | |
| 2960 | + | |
| 2961 | + | |
| 2962 | + | |
| 2963 | + | |
| 2964 | + | |
| 2965 | + | |
2948 | 2966 | | |
2949 | 2967 | | |
2950 | 2968 | | |
| |||
3042 | 3060 | | |
3043 | 3061 | | |
3044 | 3062 | | |
| 3063 | + | |
| 3064 | + | |
| 3065 | + | |
| 3066 | + | |
| 3067 | + | |
| 3068 | + | |
| 3069 | + | |
| 3070 | + | |
| 3071 | + | |
| 3072 | + | |
| 3073 | + | |
| 3074 | + | |
| 3075 | + | |
| 3076 | + | |
| 3077 | + | |
| 3078 | + | |
| 3079 | + | |
| 3080 | + | |
| 3081 | + | |
| 3082 | + | |
| 3083 | + | |
| 3084 | + | |
| 3085 | + | |
| 3086 | + | |
3045 | 3087 | | |
3046 | 3088 | | |
3047 | 3089 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
676 | 676 | | |
677 | 677 | | |
678 | 678 | | |
| 679 | + | |
| 680 | + | |
679 | 681 | | |
680 | 682 | | |
681 | 683 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
| 263 | + | |
263 | 264 | | |
264 | 265 | | |
265 | 266 | | |
| |||
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
277 | 281 | | |
278 | 282 | | |
279 | 283 | | |
| |||
283 | 287 | | |
284 | 288 | | |
285 | 289 | | |
| 290 | + | |
286 | 291 | | |
287 | 292 | | |
288 | 293 | | |
| |||
300 | 305 | | |
301 | 306 | | |
302 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
303 | 311 | | |
304 | 312 | | |
305 | 313 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
90 | 102 | | |
91 | 103 | | |
92 | 104 | | |
| |||
182 | 194 | | |
183 | 195 | | |
184 | 196 | | |
| 197 | + | |
185 | 198 | | |
186 | 199 | | |
187 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
237 | 238 | | |
238 | 239 | | |
239 | 240 | | |
| 241 | + | |
| 242 | + | |
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
| |||
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
257 | 318 | | |
258 | 319 | | |
259 | 320 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
53 | 54 | | |
54 | 55 | | |
55 | 56 | | |
| 57 | + | |
| 58 | + | |
56 | 59 | | |
57 | 60 | | |
58 | 61 | | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
68 | 72 | | |
69 | 73 | | |
70 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
71 | 82 | | |
72 | 83 | | |
73 | 84 | | |
| |||
94 | 105 | | |
95 | 106 | | |
96 | 107 | | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | 108 | | |
101 | 109 | | |
102 | 110 | | |
103 | | - | |
| 111 | + | |
104 | 112 | | |
105 | 113 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
411 | 411 | | |
412 | 412 | | |
413 | 413 | | |
414 | | - | |
415 | | - | |
416 | | - | |
| 414 | + | |
417 | 415 | | |
418 | 416 | | |
419 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
0 commit comments