Repository navigation
feat(librpa): add reader-v1 producer exports #8053
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mohanchen
merged 55 commits into
deepmodeling:develop
from
AroundPeking:pr-rpa-reader-v1
Oct 13, 2026
Merged
Changes from all commits
Commits
Show all changes
55 commits
Select commit
Hold shift + click to select a range
095bae5
test(rpa): add LibRPA reader-v1 producer regression
AroundPeking 2949be1
feat(librpa): add reader-v1 producer output
AroundPeking c8bfb47
feat(librpa): export reader-v1 shrink data
AroundPeking 8138327
feat(librpa): export split reader-v1 basis files
AroundPeking e7ba219
feat(librpa): export reader-v1 producer artifacts
AroundPeking 7a3c45d
feat(librpa): write reader-v1 KS eigenvectors with MPI-IO
AroundPeking 14d10bb
test(librpa): tighten reader-v1 producer contract
AroundPeking b5ab835
fix(librpa): retain RPA output runtime state
AroundPeking df54add
fix(librpa): restore velocity producer output
AroundPeking 71db95a
fix(librpa): register reader-v1 output protocol
AroundPeking 3a6effd
refactor(rpa): pass producer runtime state explicitly
AroundPeking f68794b
fix(librpa): restore legacy MPI writer and upstream timer API
AroundPeking c7365b3
docs: sync generated input parameter index
AroundPeking 1857625
test(librpa): align reader-v1 producer contract
codex 0958896
feat(rpa): compact reader-v1 producer outputs
codex 0534888
fix(rpa): make split producer translation unit self-contained
codex 2dcbfa5
fix(rpa): balance split implementation guards
codex 28a15d8
Merge upstream develop into reader-v1
codex 4df5d3c
fix: use test helper for reader version checks
codex b7e0098
fix(docs): use Sphinx latexpdf make mode
AroundPeking a5c49c4
fix(docs): use standard bra-ket LaTeX
AroundPeking 15b7123
fix(docs): define LaTeX math aliases
AroundPeking cef3eee
Merge remote-tracking branch 'upstream/develop' into codex/pr-rpa-rea…
AroundPeking 1a30411
refactor(rpa): name implementation fragments by purpose
codex 8ea2669
fix(input): shorten LibRPA reader parameter
codex 6aa9e7d
fix(rpa): address producer review with compiled sources and MPI regre…
codex 566684d
fix(ri): define destructor body for GCC instantiation
codex e30c4fd
test(io): align MPI fixture with reader-v1 symmetry guard
codex 91152cf
feat: preserve symmetry in reader-v1 handoff
codex a555db9
fix: bound full k-point MPI packing
codex 871b860
Merge branch 'develop' into pr-rpa-reader-v1
mohanchen 0bba279
fix(rpa): address follow-up reader-v1 review
codex 661ff00
fix(test): pass MPI flag safely to reader-v1 runners
codex 49d53a2
fix(test): select a usable MPI launcher
codex d42b75c
fix(test): use CMake MPI launcher for reader-v1 checks
codex 2cc917e
fix(test): propagate CMake MPI launcher flags
codex da7d653
fix(test): use distributed solver for MPI reader checks
codex bf82e4e
fix(kpoints): broadcast Monkhorst-Pack state to MPI ranks
codex 16c78d3
Merge upstream/develop into pr-rpa-reader-v1
codex 4e938b1
Merge upstream/develop into pr-rpa-reader-v1
codex 3cbc208
Merge upstream/develop into pr-rpa-reader-v1
codex a315e45
fix: address reader-v1 review comments
AroundPeking 29019df
docs: clarify reader-v1 formulas
AroundPeking 72ddb32
test(ri): add reader-v1 helper coverage
AroundPeking 8f430d6
refactor(rpa): validate reader k-points in KS-LCAO
AroundPeking 34ef957
Merge upstream/develop into pr-rpa-reader-v1
AroundPeking 2392004
test(rpa): refresh reader-v1 references for develop
AroundPeking 7f60f6b
test(rpa): cover reader-v1 coefficient serialization
AroundPeking a5bfdeb
test(rpa): cover BZ sampling writer
AroundPeking ab89d8c
test(rpa): cover BZ writer error path
AroundPeking 924e663
test(rpa): cover band and velocity output writers
AroundPeking d8fb5a7
Merge branch 'develop' into pr-rpa-reader-v1
mohanchen d36900f
test(lcao): align unit test naming and fixtures
AroundPeking 5497129
Merge branch 'develop' into pr-rpa-reader-v1
AroundPeking 7a59bf9
Merge branch 'develop' into pr-rpa-reader-v1
mohanchen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,39 @@ | ||
| #include "../klist_io.h" | ||
| #include <gtest/gtest.h> | ||
|
|
||
| TEST(KListIO, PreserveFullMeshAcrossPools) | ||
| { | ||
| const std::vector<int> spins = {0, 0}; | ||
| const std::vector<double> weights = {1.0 / 3, 2.0 / 3}; | ||
| const std::vector<ModuleBase::Vector3<double>> irreducible = {{0, 0, 0}, {0, 0, 1.0 / 3}}; | ||
| const std::vector<ModuleBase::Vector3<double>> full = {{0, 0, 0}, {0, 0, 1.0 / 3}, {0, 0, 2.0 / 3}}; | ||
| auto full_with_spin_capacity = full; | ||
| full_with_spin_capacity.resize(6); | ||
| std::vector<int> spin_buffer(2); | ||
| std::vector<double> weight_buffer(2); | ||
| std::vector<double> cart_buffer(6); | ||
| std::vector<double> frac_buffer(6); | ||
| std::vector<double> full_buffer(9, -9.0); | ||
| KListIO::pack_kpts(spins, weights, irreducible, irreducible, full_with_spin_capacity, 2, | ||
| spin_buffer, weight_buffer, cart_buffer, frac_buffer, full_buffer); | ||
| EXPECT_DOUBLE_EQ(full_buffer[8], 2.0 / 3); | ||
|
|
||
| std::vector<int> local_spin(1); | ||
| std::vector<double> local_weight(1); | ||
| std::vector<ModuleBase::Vector3<double>> local_cart(1); | ||
| std::vector<ModuleBase::Vector3<double>> local_frac(1); | ||
| std::vector<ModuleBase::Vector3<double>> local_full(1); | ||
| // A second pool holds only the second SCF representative, but must retain | ||
| // every original full-grid point in its original order. | ||
| KListIO::unpack_kpts(spin_buffer, weight_buffer, cart_buffer, frac_buffer, full_buffer, | ||
| 1, 1, local_spin, local_weight, local_cart, local_frac, local_full); | ||
| EXPECT_DOUBLE_EQ(local_cart[0].z, 1.0 / 3); | ||
| EXPECT_DOUBLE_EQ(local_weight[0], 2.0 / 3); | ||
| ASSERT_EQ(local_full.size(), full.size()); | ||
| for (std::size_t ik = 0; ik < full.size(); ++ik) | ||
| { | ||
| EXPECT_DOUBLE_EQ(local_full[ik].x, full[ik].x); | ||
| EXPECT_DOUBLE_EQ(local_full[ik].y, full[ik].y); | ||
| EXPECT_DOUBLE_EQ(local_full[ik].z, full[ik].z); | ||
| } | ||
| } |
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.