Apply weight windows at collisions in multigroup transport mode. (#3199)

This commit is contained in:
Patrick Shriwise 2024-11-18 08:52:59 -06:00 committed by GitHub
parent d30b2e8014
commit fbb115921c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -19,6 +19,7 @@
#include "openmc/settings.h"
#include "openmc/simulation.h"
#include "openmc/tallies/tally.h"
#include "openmc/weight_windows.h"
namespace openmc {
@ -27,6 +28,9 @@ void collision_mg(Particle& p)
// Add to the collision counter for the particle
p.n_collision()++;
if (settings::weight_window_checkpoint_collision)
apply_weight_windows(p);
// Sample the reaction type
sample_reaction(p);