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 MPCD compiler warning #1845

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Fix MPCD compiler warning #1845

merged 1 commit into from
Jul 17, 2024

Conversation

mphoward
Copy link
Collaborator

@mphoward mphoward commented Jul 17, 2024

Description

The compiler warning was being generated because of the use of GammaDistribution in kernel::srd_draw_vectors. This PR rearranges that function to remove the use of recursion.

Motivation and context

Code should compile without warnings.

Resolves #1844

How has this been tested?

Existing unit tests pass, and the compiler warning is gone.

Change log

* Fix MPCD compiler warning.
  (`#1845 <https://github.com/glotzerlab/hoomd-blue/pull/1845>`__)

Checklist:

@mphoward mphoward requested review from a team, joaander, SchoeniPhlippsn and seoulfood and removed request for a team July 17, 2024 02:35
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 for the fast response!

@joaander joaander added the validate Execute long running validation tests on pull requests label Jul 17, 2024
@joaander joaander enabled auto-merge July 17, 2024 12:44
@joaander joaander merged commit 1d850c8 into trunk-patch Jul 17, 2024
45 of 64 checks passed
@joaander joaander deleted the fix/mpcd-warnings branch July 17, 2024 12:56
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.

Fix compiler warnings in MPCD
2 participants