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
Final cleanup pass to align naming after the locale -> occ_mat rename:
* dftu_lcao.cpp (~40 lines):
- Replace identifier-style 'locale' / 'Locale' references in the
contributeHR() doc block and inline comments with 'occ_mat' /
'Occ_mat', including stale 'via get_locale()' / 'get_locale uses'
mentions that no longer match the API.
- Rename local bool flag locale_not_init -> occ_mat_not_init.
* dftu_pw.cpp (4 lines): Fix the 4 remaining comments that still
referred to 'locale matrix' / 'reduce locale' / 'locale reduced'
in the cal_occ_pw implementation notes.
* dftu_occup.cpp (2 lines): Update the top-of-file function inventory
comment: set_locale(ucell) -> set_occ_mat(ucell); get/set_locale_flat
-> get/set_occ_mat_flat.
* dftu_tools.cpp (12 lines): Rename bool parameter 'newlocale' ->
'new_occ_mat' and its 3 internal uses in cal_VU_pot_mat_{complex,real}
and get_onebody_eff_pot signatures/bodies, so the parameter name
matches the occ_mat naming convention.
* dftu_core_test.cpp (28 lines):
- copy_locale_to_flat -> copy_occ_mat_to_flat (def + 3 call sites)
- set_locale_from_flat -> set_occ_mat_from_flat (def + 3 call sites)
- LocaleRoundtripTest -> OccMatRoundtripTest (test fixture + 2 TEST_F)
- Related header comments: 'copy_locale <-> set_locale roundtrip',
'nested locale matrix' updated accordingly.
* dftu_pw_test.cpp (6 lines):
- 'Locale accumulation from becp' -> 'Occupation matrix accumulation
from becp' in the test description;
- 'set_locale is tested via integration tests.' -> 'set_occ_mat is
tested via integration tests.'
Not touched: pure semantic/mathematical local variable names inside
the test helpers (locale_up, locale_dn, locale_c, compute_vu(locale_val),
compute_energy(locale_flat), etc.) - these are local symbolic
placeholders independent of the Plus_U_Base member naming.
6 files changed, 49 insertions(+), 49 deletions(-).
0 commit comments