Repository navigation
Commit 64463eb
Move Structure_Factor, Soc and the cal_sk_op kernel to source_cell; drop four unused upward includes (#8234)
* Move Structure_Factor, Soc and the cal_sk_op kernel to source_cell
Structure_Factor holds S(G) and the per-atom phase factors exp(-iG.tau),
the Fourier representation of the atomic positions. Soc holds the
spin-angular coupling coefficients of the pseudopotentials. Neither is
plane-wave method code, but both lived in source_pw/module_pwdft, so
source_psi, source_estate and source_hamilt included source_pw for them.
- stru_fac.{h,cpp}, stru_fac_k.cpp, soc.{h,cpp} move to source_cell/.
soc.cpp joins the cell library. stru_fac*.cpp form a separate
structure_factor object library, because they need the plane-wave
basis and the cell-only unit tests do not link planewave.
- The cal_sk_op kernel (wf_op.{h,cpp}, cuda/wf_op.cu, rocm/wf_op.hip.cu)
moves to source_cell/kernels/. Its unused include of source_psi/psi.h
is dropped; stru_fac_k.cpp now includes memory_op.h, which it used
through psi.h.
- The old headers in source_pw/module_pwdft forward to the new ones, so
higher-layer includers are unchanged. The includers in source_psi,
source_estate and source_hamilt, and the tests that compile these
files, point at the new paths.
No code inside the moved files changes apart from include lines.
Refs #8233
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Drop four unused upward includes in source_estate and source_relax
- edm_tddft.cpp includes module_rt/gather_mat.h and propagator.h but
uses neither; only edm_tddft_lapack.cpp needs them.
- elecstate_pw_sdft.cpp includes xc_functional.h but uses no XC symbol.
- ions_move_lbfgs.h includes esolver_ks.h, but the class only stores an
ESolver*, which esolver.h already declares.
Refs #8233
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Remove the stru_fac.h and soc.h forwarding headers from source_pw
Point the remaining includers in source_esolver, source_io, source_lcao
and source_pw at source_cell/stru_fac.h and source_cell/soc.h directly,
and delete the two forwarding headers left in source_pw/module_pwdft.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent 5a7e6a6 commit 64463eb
57 files changed
Lines changed: 60 additions & 59 deletions
File tree
- source
- source_cell
- kernels
- cuda
- rocm
- source_esolver
- source_estate
- module_charge
- module_dm
- module_pot
- unittests
- source_hamilt/module_surchem
- test
- source_io
- module_bessel
- module_ctrl
- module_energy
- source_lcao
- module_deepks/test
- module_rt/test
- source_psi
- test
- source_pw
- module_dfpt
- test_serial
- test
- module_proj
- module_pwdft
- kernels/test
- unittests
- module_rt/unittests
- module_stodft
- source_relax
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 | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
| 665 | + | |
666 | 666 | | |
667 | 667 | | |
668 | 668 | | |
| |||
690 | 690 | | |
691 | 691 | | |
692 | 692 | | |
693 | | - | |
| 693 | + | |
694 | 694 | | |
695 | 695 | | |
696 | 696 | | |
| |||
729 | 729 | | |
730 | 730 | | |
731 | 731 | | |
732 | | - | |
| 732 | + | |
733 | 733 | | |
734 | 734 | | |
735 | 735 | | |
| |||
793 | 793 | | |
794 | 794 | | |
795 | 795 | | |
| 796 | + | |
796 | 797 | | |
797 | 798 | | |
798 | 799 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
54 | 59 | | |
55 | 60 | | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
| |||
File renamed without changes.
File renamed without changes.
File renamed without changes.
0 commit comments