Output a screen notice when calculating EXX force/stress - #7975
Merged
Merged
Conversation
In hybrid-functional (e.g. HSE) calculations with force/stress, Exx_LRI::cal_exx_force/cal_exx_stress can dominate the runtime while producing no screen output, leaving users with the impression that the program is stuck after SCF finishes. Print a NOTICE line on screen before the EXX force/stress computation in LCAO_domain::cal_exx_fs, following the existing std::cout notice style in ESolver_KS_LCAO. Screen-only output keeps the PR-level global dependency budget non-increasing. Closes deepmodeling#6595
mohanchen
approved these changes
Sep 17, 2026
Zanthoxylum
pushed a commit
to Zanthoxylum/abacus-develop
that referenced
this pull request
Sep 17, 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.
What this PR does
Closes #6595.
In hybrid-functional (e.g. HSE) calculations with force/stress,
Exx_LRI::cal_exx_force/cal_exx_stresscan dominate the runtime (in the issue reporter's case 56% of total wall time) while producing no screen output, leaving users — especially after SCF finishes — with the impression that the program is stuck.This PR prints a one-line notice on screen before the EXX force/stress computation in
LCAO_domain::cal_exx_fs(source/source_lcao/force_stress_terms.cpp):The output follows the existing
std::coutnotice style already used inESolver_KS_LCAO(e.g. the Gint mixed-precision NOTICE). The notice is screen-only (noGlobalV::ofs_runningwrite) to keep the PR-level global dependency budget non-increasing — an earlier version writing to the running log was flagged as an ERROR byagent_governance_check.py --staged.