feat: add BSE module - #7718
Merged
Merged
feat: add BSE module#7718
Conversation
mohanchen
reviewed
Jul 31, 2026
|
Just a note: the current code is not well encapsulated:
|
Fisherd99
force-pushed
the
develop
branch
7 times, most recently
from
August 12, 2026 20:41
124ce0e to
1962112
Compare
2. feat: add ExcitonPlotter 3. add input parameter `rpa_outdir` and `rpa_out_vel`
…outputs, ensuring robust handling of parallel I/O. - Refactor exciton plotting utilities. - Delete unnecessary 'PARAM‘ and 'GlobalV'.
fix without MPI compile bug fix elpa interface
mohanchen
approved these changes
Aug 13, 2026
mohanchen
left a comment
Collaborator
There was a problem hiding this comment.
This is an important update, thanks for your contributions! However, keep in mind that refactors are needed in near future.
dyzheng
pushed a commit
to dyzheng/abacus-develop
that referenced
this pull request
Aug 18, 2026
…r-sign Conflict resolutions (build fixes required by the merged tree): - module_operator_lcao/test/CMakeLists.txt: ORB_atomic_lm.cpp -> orb_atomic_lm.cpp, matching develop's filename normalization (deepmodeling#7797) in the dm_trace test target sources. - module_lr/utils/exciton_plotter.cpp: add missing 'template' keyword for the dependent-template call eval_wfc_bloch<T> (upstream BSE module, deepmodeling#7718) that fails to compile with the standard C++11 rule.
maki49
added a commit
to maki49/abacus-develop
that referenced
this pull request
Sep 4, 2026
The LR part was being subtracted. It should be added: what cal_force(int) returns already follows the ABACUS force convention F = -dE/dR, despite the "Gradients of each excited state" heading it prints under. The finite-difference reference it was validated against, abacus-fd lr-custom, goes through run_diff_custom_lr, where energies[0] is the +dx/2 point and the result is (energies[1] - energies[0])/dx, i.e. -dE/dx -- so that table compares force to force. (run_diff_all_kslr in the same file uses the opposite ordering; do not read the convention off that one.) With the wrong sign a relaxation still converged, because F_gs - F_Omega does reach zero somewhere -- just not at a stationary point of E_gs + Omega. On BH/lda it stopped at 1.2864 A while the energy minimum was near 1.25 A. What made that visible is the other half of this commit: one line per ionic step giving E_gs, Omega, E_exc and the two force magnitudes. Before it the log carried only a force, so a force that was self-consistently zero looked like convergence and nothing could be cross-checked against the energy. After the fix, BH/lda relaxes the first singlet to 1.25628 A, which is the lowest E_exc of every geometry sampled and where the two force halves cancel (0.29326 vs 0.29359). The ground state relaxes to 1.27430 A, so the excited bond is shorter by 0.018 A -- the direction and size seen for BH A1Pi (1.2195 vs 1.2324 A). Also restores the aims guard on set_atomic_trace. d4fe3fe ("Support different basis number from aims") deliberately replaced the unconditional call with a guarded one, because with aims_nbasis the per-atom orbital counts behind iat2iwt do not match nbasis. 1e4c1c6 (BSE, deepmodeling#7718) then re-added an unconditional call above it, silently undoing that. The previous commit here kept the wrong one of the two. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GUvgXxW4C5E1sRzUXqegEu
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.
ATTENTION: BSE module depends on LibRI#11 Implement CVC algorithm and enhance LR class abacusmodeling/LibRI#11
rpa_outdirandrpa_out_velfor Output files are not in the correct directories #7661Reminder
AGENTS.mdanddocs/developers_guide/agent_governance.md.Not yet. The BSE module depends on LibRPA output files for reading. I don't know whether we can upload these files.
source/changes.Linked Issue
Fix #7661
Unit Tests and/or Case Tests for my changes
What's changed?
Governance Notes