Skip to content

Output a screen notice when calculating EXX force/stress - #7975

Merged
mohanchen merged 2 commits into
deepmodeling:developfrom
goodchong:feature/exx-fs-notice
Sep 17, 2026
Merged

mohanchen merged 2 commits into
deepmodeling:developfrom
goodchong:feature/exx-fs-notice

Conversation

@goodchong

@goodchong goodchong commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

What this PR does

Closes #6595.

In hybrid-functional (e.g. HSE) calculations with force/stress, Exx_LRI::cal_exx_force/cal_exx_stress can 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):

 >> NOTICE: calculating EXX force/stress, which may be time-consuming

The output follows the existing std::cout notice style already used in ESolver_KS_LCAO (e.g. the Gint mixed-precision NOTICE). The notice is screen-only (no GlobalV::ofs_running write) to keep the PR-level global dependency budget non-increasing — an earlier version writing to the running log was flagged as an ERROR by agent_governance_check.py --staged.

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 mohanchen added the Input&Output Suitable for coders without knowing too many DFT details label Sep 17, 2026
@mohanchen mohanchen added the Refactor Refactor ABACUS codes label Sep 17, 2026
@mohanchen
mohanchen merged commit 688d0c7 into deepmodeling:develop Sep 17, 2026
17 checks passed
Zanthoxylum pushed a commit to Zanthoxylum/abacus-develop that referenced this pull request Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Input&Output Suitable for coders without knowing too many DFT details Refactor Refactor ABACUS codes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Could the Force/Stress calculation checkpoint be output for users in when using HSE

2 participants