Skip to content

Conversation

Copy link

Copilot AI commented Jan 15, 2026

The comment describing the beta parameter in HybCoeffs incorrectly stated that the short-range HF coefficient is alpha - beta. This contradicts the libxc notation and actual functional behavior.

For LCWPBE (alpha=1.0, beta=-1.0), only long-range HF exchange is retained:

  • Short-range coefficient = alpha + beta = 1.0 + (-1.0) = 0 ✓
  • Not alpha - beta = 1.0 - (-1.0) = 2.0 ✗

Changes

  • Updated comment in include/exchcxx/xc_functional.hpp line 69 to correctly state alpha + beta
Original prompt

This section details on the original issue you should resolve

<issue_title>erroneous comment describing range-separated exx parameter beta</issue_title>
<issue_description>in https://github.com/wavefunction91/ExchCXX/blame/master/include/exchcxx/xc_functional.hpp#L69 : should this be alpha + beta? E.g. LCWPBE alpha=1 beta=-1, so only the long-range (erf) part is kept.</issue_description>

Comments on the Issue (you are @copilot in this section)

@wavefunction91 That is correct.

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Changed 'alpha - beta' to 'alpha + beta' in the comment describing the
short-range HF coefficient. For LCWPBE with alpha=1 and beta=-1, only
the long-range (erf) part is kept, which means short-range = alpha + beta
= 1 + (-1) = 0.

Co-authored-by: wavefunction91 <6208701+wavefunction91@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix erroneous comment for beta parameter in functional Fix comment: short-range HF coefficient is alpha + beta, not alpha - beta Jan 15, 2026
Copilot AI requested a review from wavefunction91 January 15, 2026 21:13
@wavefunction91 wavefunction91 marked this pull request as ready for review January 15, 2026 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

erroneous comment describing range-separated exx parameter beta

3 participants