Commit 36b5ac0
abacus_fixer
fix(dftu): restore cal_eff_pot_mat_R_{double,complex_double} function names
Commit 5ac6ca7 claimed 'R-space versions cal_eff_pot_mat_R_* kept
as-is for follow-up' in its message, but actually renamed the
function definitions in dftu_hamilt.cpp to cal_pot_uterm_mat_R_*.
The member declarations in dftu_lcao.h were not renamed, causing
header/implementation mismatch:
dftu_hamilt.cpp:127: error: no declaration matches
'void Plus_U::cal_pot_uterm_mat_R_double(int, double*, double*, int)'
dftu_hamilt.cpp:157: error: no declaration matches
'void Plus_U::cal_pot_uterm_mat_R_complex_double(...)'
Restore the original names cal_eff_pot_mat_R_double and
cal_eff_pot_mat_mat_R_complex_double in dftu_hamilt.cpp so they match
the declarations in dftu_lcao.h:80,82 and the call sites in
spar_u.cpp:76,195.
The R-space functions will be renamed in a follow-up commit that
also updates spar_u.cpp and the header in lock-step.
Verification:
- rg 'cal_pot_uterm_mat_R' returns no matches (no stale callers).
- rg 'cal_eff_pot_mat_R' shows consistent use across
dftu_lcao.h (declarations), dftu_hamilt.cpp (definitions),
spar_u.cpp (call sites).1 parent 3dd8883 commit 36b5ac0
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
| 127 | + | |
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| |||
154 | 154 | | |
155 | 155 | | |
156 | 156 | | |
157 | | - | |
| 157 | + | |
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| |||
0 commit comments