Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Union Potentials in HPMC #1725

Merged
merged 43 commits into from Mar 4, 2024
Merged

Union Potentials in HPMC #1725

merged 43 commits into from Mar 4, 2024

Conversation

tommy-waltmann
Copy link
Contributor

@tommy-waltmann tommy-waltmann commented Feb 20, 2024

Description

This PR adds union potentials in HPMC.

Motivation and context

Union potentials are a replacement for CPPPotentialUnion, which was based on llvm's JIT engine that is being removed from hoomd-blue in the version 5.0 release.

Partially Resolves #1652

How has this been tested?

I have written a set of unit tests for the new class. Should validation tests be added to hoomd-validation as well?

Change log

Added:
* `pair.Union` to replace `CPPPotentialUnion` for patch interactions.

Checklist:

@tommy-waltmann tommy-waltmann marked this pull request as ready for review February 26, 2024 19:38
@tommy-waltmann tommy-waltmann requested review from a team as code owners February 26, 2024 19:38
@tommy-waltmann tommy-waltmann requested review from tcmoore3 and removed request for a team February 26, 2024 19:38
@joaander
Copy link
Member

Commit bb71f90 passes hoomd-validation tests: glotzerlab/hoomd-validation#86

@joaander joaander added the validate Execute long running validation tests on pull requests label Feb 27, 2024
@joaander
Copy link
Member

This pull request is complete and ready for final review.

Copy link
Member

@b-butler b-butler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good. I added some suggestions for more modern C++.

hoomd/hpmc/pair/pair.py Outdated Show resolved Hide resolved
hoomd/hpmc/PairPotentialUnion.cc Show resolved Hide resolved
hoomd/hpmc/PairPotentialUnion.cc Outdated Show resolved Hide resolved
hoomd/hpmc/PairPotentialUnion.cc Outdated Show resolved Hide resolved
hoomd/hpmc/PairPotentialUnion.h Show resolved Hide resolved
hoomd/hpmc/pytest/test_pair_union.py Outdated Show resolved Hide resolved
@joaander joaander requested a review from b-butler March 1, 2024 13:46
Copy link
Member

@tcmoore3 tcmoore3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work.

hoomd/hpmc/PairPotential.h Outdated Show resolved Hide resolved
hoomd/hpmc/PairPotential.h Outdated Show resolved Hide resolved
Co-authored-by: Tim Moore <mtimc@umich.edu>
@joaander joaander enabled auto-merge March 4, 2024 14:29
@joaander joaander merged commit 3d0a803 into trunk-minor Mar 4, 2024
40 checks passed
@joaander joaander deleted the hpmc-union-potential branch March 4, 2024 18:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
validate Execute long running validation tests on pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants