openmc-dev / openmc

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

Expose a `max_events` setting. #2944

Closed pshriwise closed 3 weeks ago

pshriwise commented 3 weeks ago

Description

For deep shielding problems and/or problems using weight windows, particles may exceed the maximum number of allowed events. This value is currently hard-coded in https://github.com/openmc-dev/openmc/blob/87e00f76ed6fd30b0dc10e8c86daba1f4ff7dff5/include/openmc/particle_data.h#L31-L32.

Compatibility

Exposing this setting should be an additive change and won't break backward compatibility.