Repository navigation
refactor: use explicit types in INPUT, Wannier, LCAO radial tables and CUDA - #8391
Merged
mohanchen merged 5 commits intoNov 25, 2026
Conversation
mohanchen
approved these changes
Nov 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Reminder
AGENTS.mdanddocs/developers_guide/agent_governance.md.source/changes.Linked Issue
This local declaration cleanup has no separate issue.
Unit Tests and/or Case Tests for my changes
OMP_NUM_THREADS=1 ./input-testspassed 53/53 andOMP_NUM_THREADS=1 OPENBLAS_NUM_THREADS=1 ./radial-testspassed 4/4 with FFTW3 enabled.cmpfound every object byte-identical.nm -C --defined-only to_w90_lcao_io.oconfirmed all threewrite_spnspecializations were present.kedf_wt_gpu.cuwith CUDA 12.9.86 and GCC 12.4 usingnvcc -std=c++14 --gpu-architecture=sm_70 --frandom-seed=42 -D__CUDA -D__FFTW3.cmp base.ptx head.ptxandcmp base.stripped.o head.stripped.opassed afterobjcopy --strip-debugon the objects. Coverage was limited to host unit tests and code generation. A full MPI calculation, GPU execution and HIP build were outside these checks.What's changed?
Spell out the existing C++ types in 50 local declarations across four commits. INPUT reading, validation, help and tests account for 33. Wannier spin output accounts for four, the LCAO two-center radial tables for 12, and the CUDA Wang-Teter filtered-buffer pointer for one. The declarations preserve value copies, references, iterator constness and shared ownership.
Governance Notes
No documentation update required because the change only spells out local types. INPUT metadata, output formats and interfaces retain their existing behavior. No governance exception is needed.