Feature: use new format of CSR file for out_mat_hs2 and out_mat_ds, out_mat_t, out_mat_r, out_mat_xc2#6991
Open
dyzheng wants to merge 27 commits intodeepmodeling:developfrom
Open
Feature: use new format of CSR file for out_mat_hs2 and out_mat_ds, out_mat_t, out_mat_r, out_mat_xc2#6991dyzheng wants to merge 27 commits intodeepmodeling:developfrom
dyzheng wants to merge 27 commits intodeepmodeling:developfrom
Conversation
zhubonan
suggested changes
Mar 4, 2026
Collaborator
zhubonan
left a comment
There was a problem hiding this comment.
Please move the parameter description update to the read_input_item_oputput.cpp source code file regenerate parameters.yaml and input-main.md. See also: https://abacus.deepmodeling.com/en/latest/CONTRIBUTING.html#how-to-regenerate
be54bb1 to
f7cce86
Compare
ErjieWu
reviewed
Mar 5, 2026
Collaborator
|
Format of reference files in integration tests should be updated as well. LGTM. |
f7cce86 to
460ebf6
Compare
mohanchen
reviewed
Mar 16, 2026
Enable the previously commented-out H(R) matrix comparison in catch_properties.sh and regenerate all CSR reference files for scf_out_hsr, scf_out_hsr_spin4, and nscf_out_hsr_tr_rr to match the new CSR output format. Add missing hrs1_nao.csr.ref for nscf test. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The CI build uses C++11 where std::make_unique is not available. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
72d9bc0 to
e779d98
Compare
mohanchen
reviewed
Mar 17, 2026
…write_HS_R.cpp Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
mohanchen
reviewed
Mar 20, 2026
…r handling - Add write-read round-trip consistency test for Output_HContainer/Read_HContainer - Add sparse threshold filtering, precision parameter, and nspin=2 tests - Add clear error message when HR files missing for init_chg=hr - Update CMakeLists.txt with new test targets Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
When all matrix elements of an R-vector are below sparse_threshold, Output_HContainer skipped writing that R-block entirely, but the file header still declared the full nR count from size_R_loop(). This caused csrFileReader to hit EOF when reading HR files with sparse R-blocks (e.g. init_chg=hr), while DM files were unaffected because all R-vectors had nonzero elements. Also made csr_reader more robust by skipping comment/empty lines instead of hardcoding 9 readLine() calls for the CSR format block. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Resolve conflicts in write_HS_R.cpp and write_HS_sparse.cpp by keeping the refactored versions that removed the old output_HSR and save_HSR_sparse functions. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
mohanchen
reviewed
Mar 31, 2026
added 3 commits
March 31, 2026 15:56
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
Linked Issue
Fix #...
Unit Tests and/or Case Tests for my changes
What's changed?
Any changes of core modules? (ignore if not applicable)