Skip to content

D3 correction is problematic with r2scan #313

Description

@masanao-goto

Thank you for the great work on D3 dispersion correction support.

We recently tested SevenNet-omni-matpes_r2scan with dispersion correction using v0.12.1, and encountered a problem.

Expected behavior

Specifying functional_name="r2scan" in SevenNetD3Calculator should work correctly, since pair_d3_for_ase.cu in the source tree does include r2scan at index 54:

{"pbeh-3c", 52}, {"wb97m", 53}, {"r2scan", 54}

Actual behavior

The v0.12.1 wheel (sevenn-0.12.1-py3-none-any.whl) ships a pre-compiled sevenn/pair_d3.so that was built without r2scan support. Since _load() returns this .so immediately without recompiling, every D3 energy evaluation prints Error: Functional name unknown and silently falls back to no dispersion correction.

Workaround

Manually removing pair_d3.so from the installed package forces _load() to recompile from pair_d3_for_ase.cu, after which r2scan works correctly.

rm /path/to/site-packages/sevenn/pair_d3.so

Activity

  1. self-assigned this
    on Jun 18, 2026
  2. masanao-goto commented on Sep 25, 2026

    @masanao-goto
    Author

    Thanks! I fould this problem has been fixed in 0.13.0.
    I think we can close this issue.

  3. alphalm4 commented on Oct 1, 2026

    @alphalm4
    Contributor

    Thanks for your report! I'll close this issue. Please re-open any related problem is reoccurred.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions