Skip to content

Fix embedded D3TS dispersion detection#48

Open
k-s-n wants to merge 1 commit intomainfrom
fix-embedded-d3ts
Open

Fix embedded D3TS dispersion detection#48
k-s-n wants to merge 1 commit intomainfrom
fix-embedded-d3ts

Conversation

@k-s-n
Copy link
Copy Markdown

@k-s-n k-s-n commented Mar 30, 2026

During crystal structure optimization in AIMNet2Calculator._has_embedded_dispersion(): for exported models with has_embedded_lr=True and coulomb_mode="sr_embedded", it incorrectly returned False, even though the exported model contained an embedded D3TS dispersion module. And so, the calculator could not build the long-range neighbor list (nbmat_lr / shifts_lr), and D3TS.forward() failed with KeyError: No neighbor matrix found for any suffix in ['_dftd3', '_lr'].

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.

1 participant