Skip to content

Iterative solver for charge equilibration - #12

Merged
peastman merged 1 commit into
openmm:mainfrom
peastman:minres
Aug 21, 2026
Merged

Iterative solver for charge equilibration#12
peastman merged 1 commit into
openmm:mainfrom
peastman:minres

Conversation

@peastman

@peastman peastman commented Aug 20, 2026

Copy link
Copy Markdown
Member

By default, charge equilibration uses torch.linalg.solve() to solve the system of equations. They don't document what method it uses, but it's probably LU. Especially for large systems, an iterative solver can be a lot faster. PyTorch doesn't provide any iterative solvers, but someone ported the SciPy implementation of MINRES to PyTorch. I added it as an option.

@peastman
peastman merged commit 19e7c55 into openmm:main Aug 21, 2026
2 checks passed
@peastman
peastman deleted the minres branch August 21, 2026 16:57
@peastman
peastman restored the minres branch August 22, 2026 20:47
@peastman
peastman deleted the minres branch August 22, 2026 20:48
@peastman
peastman restored the minres branch August 22, 2026 20:49
@peastman
peastman deleted the minres branch August 22, 2026 20:49
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