openmc-dev / openmc

OpenMC Monte Carlo Code
https://docs.openmc.org
Other
771 stars 496 forks source link

Allow Discrete distributions to have independent variables other than double #2407

Open gonuke opened 1 year ago

gonuke commented 1 year ago

The Discrete distribution is currently limited to doubles, but could be used to represent many different quantities. Could be useful for #2406

gonuke commented 1 year ago

This is more complicated than it first seemed since it implies templating the Distribution virtual base class that is used by many different distribution types that only make sense with a double independent variable...???

gonuke commented 1 year ago

Interested in @paulromano 's thoughts on such an intrusive change...?