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

Fix SDF computation with patchy potentials. #1636

Merged
merged 3 commits into from Oct 23, 2023
Merged

Conversation

tcmoore3
Copy link
Member

Description

Changes the SDF pressure computation for patchy potentials. The correct formulation of the "soft overlap" approach should not add values less than zero to the histograms used for the SDF. This change adds the maximum of zero and the computed weight to add to the histograms.

Motivation and context

Accurate pressure calculation is better than inaccurate pressure calculation.

How has this been tested?

Added unit tests to make sure the SDF arrays contain the correct values.

The validation tests now pass, see glotzerlab/hoomd-validation#66.

Change log

- Fix implementation of SDF pressure compute for patchy potentials.

Checklist:

@tcmoore3 tcmoore3 requested review from a team as code owners October 19, 2023 18:22
@tcmoore3 tcmoore3 requested review from SchoeniPhlippsn and melodyyzh and removed request for a team October 19, 2023 18:22
@tcmoore3 tcmoore3 force-pushed the test/sdf-changes branch 2 times, most recently from 440337c to 7f98259 Compare October 19, 2023 18:43
@joaander joaander changed the title Test/sdf changes Fix SDF computation with patchy potentials. Oct 20, 2023
@joaander joaander added the validate Execute long running validation tests on pull requests label Oct 20, 2023
@joaander
Copy link
Member

Reviewers, please take a look at this small fix soon. This is the last change I will include in the 4.3.0 release.

Copy link
Member

@joaander joaander left a comment

Choose a reason for hiding this comment

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

Thanks!

@joaander joaander merged commit 9953645 into trunk-patch Oct 23, 2023
72 of 73 checks passed
@joaander joaander deleted the test/sdf-changes branch October 23, 2023 14:19
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

2 participants