glotzerlab / hoomd-blue

Molecular dynamics and Monte Carlo soft matter simulation on GPUs.
http://glotzerlab.engin.umich.edu/hoomd-blue
BSD 3-Clause "New" or "Revised" License
335 stars 131 forks source link

Fix MPCD compiler warning #1845

Closed mphoward closed 2 months ago

mphoward commented 2 months ago

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: