You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browse filesBrowse the repository at this point in the historyBrowse files
abacus_fixer
committed
refactor(module_dftu): thread ucell explicitly, drop Plus_U::ucell member
Remove the Plus_U private member `const UnitCell* ucell` and its
`get_ucell()` accessor. The 4 read sites now receive ucell as an
explicit parameter:
- DFTU_LCAO::pot_uterm_{complex,real}: add `const UnitCell& ucell` param,
passed through the legacy OperatorDFTU operator which now holds its own
`ucell` pointer set once in the constructor.
- Plus_U::cal_eff_pot_mat_R_{double,complex_double}: add `const UnitCell&`
param; their only callers (sparse_format::cal_HR_dftu{,_soc}) are
updated to thread ucell through.
Construction sites updated to pass ucell:
- hamilt_lcao.cpp (HamiltLCAO ctor, 2 sites)
- write_vxc.hpp (vdftu_op_ao local, 1 site)
Also fix a stale doxygen on pot_uterm_* (the Plus_U::pot_onsite_*
wrappers were removed in the previous commit; the comment now reads
"Calls DFTU_LCAO::pot_onsite_*").
Pure refactor, no behavior change. No INPUT parameter affected.
Verification:
- make -j4 (full build): 100%, linked abacus_basic_para
- python3 tools/03_code_analysis/agent_governance_check.py --staged: no findings
- grep: no residual Plus_U::ucell / get_ucell() references
Signed-off-by: Abacus Agent <abacus@example.com>
0 commit comments