Commit 1d87c67
abacus_fixer
refactor(dftu): prune redundant #include in module_dftu
Remove unused #include directives across 12 files in
source/source_lcao/module_dftu/. Each removal was verified by
symbol-usage grep against the file body (excluding the include lines
themselves) and by compiling the dftu + hamilt_lcao CMake targets.
Removed includes per file:
- dftu_lcao.cpp: parameter.h, constants.h, global_function.h,
inverse_matrix.h, memory_recorder.h, magnetism.h, charge.h and
unused <cstdint>/<cmath>/<cstdio>/<cstring>/<fstream>/<iomanip>/
<iostream>/<sstream>; add focused matrix.h (for
ModuleBase::matrix::operator() via occ_mat), tool_quit.h, tool_title.h
- dftu_folding.cpp: parameter.h, hcontainer.h, hcontainer_funcs.h
- dftu_force.cpp: parameter.h, constants.h, inverse_matrix.h,
elecstate_lcao.h, magnetism.h, charge.h, <cmath>, <fstream>,
<iomanip>, <iostream>, <sstream>, <stdio.h>, <string.h>
- dftu_hamilt.cpp: parameter.h
- dftu_lcao_op.cpp: hcontainer_funcs.h, <unordered_set>
- dftu_lcao_op_legacy.cpp: dftu_lcao.h (already provided by its own .h)
- dftu_occup.cpp: parameter.h
- dftu_tools.cpp: timer.h (no direct ModuleBase::timer use), parameter.h
- dftu_yukawa.cpp: parameter.h, <complex>, <fstream>, <iomanip>,
<iostream>, <sstream>, <cstdio>, <cstring>
- dftu_lcao.h: charge_mixing.h (still provided transitively via
dftu_base.h), force_stress_arrays.h (not directly used here)
- dftu_lcao_op.h: density_matrix.h (not directly used here)
- dftu_lcao_op_legacy.h: timer.h (not directly used here)
Note: scalapack_connector.h was kept in dftu_force.cpp / dftu_hamilt.cpp
/ dftu_occup.cpp -- these files call ScalapackConnector::gemm.
Verification: OMP_NUM_THREADS=1 make -C build_std_para dftu hamilt_lcao
=> EXIT=0, no errors, no warnings. Full abacus build deferred to user;
external modules that include dftu_lcao.h and use Charge_Mixing
(chgmixing.cpp, esolver_ks.cpp/h) should still resolve via
dftu_lcao.h -> dftu_base.h -> charge_mixing.h.1 parent 144c795 commit 1d87c67
12 files changed
Lines changed: 4 additions & 54 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | | - | |
9 | | - | |
10 | 7 | | |
11 | 8 | | |
12 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | 1 | | |
4 | 2 | | |
5 | 3 | | |
6 | 4 | | |
7 | | - | |
8 | 5 | | |
9 | | - | |
10 | 6 | | |
11 | 7 | | |
12 | 8 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | 9 | | |
17 | | - | |
18 | 10 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 11 | | |
26 | 12 | | |
27 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
6 | 5 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
8 | 6 | | |
9 | | - | |
10 | | - | |
11 | 7 | | |
12 | | - | |
13 | | - | |
14 | 8 | | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 9 | | |
22 | 10 | | |
23 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | | - | |
15 | 13 | | |
16 | 14 | | |
17 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | 8 | | |
13 | 9 | | |
14 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
| |||
0 commit comments