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): drop Plus_U npol/nlocal/ks_solver members
Remove the Plus_U private members `npol`, `nlocal`, `ks_solver` and their
read-only accessors `get_npol()`, `get_nlocal()`, `get_ks_solver()`.
All read sites now take these values from sources already in scope:
- nlocal: Parallel_Orbitals::get_global_row_size() (matches the GEMM
global matrix dimension the member was initialized from in init())
- npol: UnitCell::get_npol(), or the existing npol parameter of
DFTU_LCAO::force_stress (which previously shadowed it with dftu)
- ks_solver: PARAM.inp.ks_solver (dftu_force.cpp now includes
source_io/module_parameter/parameter.h)
No function signature changes; the PW path is untouched
(Plus_U_Base::init_base uses its local parameter, not these members).
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 npol/nlocal/ks_solver member or accessor uses
Signed-off-by: Abacus Agent <abacus@example.com>
0 commit comments