Skip to content

Pin rng type to avoid templating all rng functions - #67

Merged
logantm2 merged 9 commits into
mainfrom
pin-rng-type-to-avoid-templating-all-rng-functions
Jul 1, 2026
Merged

Pin rng type to avoid templating all rng functions#67
logantm2 merged 9 commits into
mainfrom
pin-rng-type-to-avoid-templating-all-rng-functions

Conversation

@logantm2

Copy link
Copy Markdown
Collaborator

No description provided.

@logantm2 logantm2 self-assigned this Jun 19, 2026
@logantm2

Copy link
Copy Markdown
Collaborator Author

So for the BGK stuff, I wanna write a class with a virtual function that accepts an RNG. The problem is that all of our current functions that accept RNGs are templated on the RNG type, but you can't make a virtual function template. This PR just picks an RNG type so that all those templates can be removed, and puts it in one place so that it can be swapped out at compile time easily.

@logantm2
logantm2 requested a review from reuterb June 19, 2026 00:40
@logantm2
logantm2 marked this pull request as ready for review June 19, 2026 00:40
@logantm2
logantm2 merged commit 8a290e0 into main Jul 1, 2026
4 checks passed
@logantm2
logantm2 deleted the pin-rng-type-to-avoid-templating-all-rng-functions branch July 1, 2026 19:33
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.

2 participants