From 107aa5841f7fc9fa615ce6bee431194d8a9a47e0 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Thu, 14 Nov 2024 14:45:33 -0600 Subject: [PATCH] Apply weight windows at collisions for multigroup transport if specified --- src/physics_mg.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/physics_mg.cpp b/src/physics_mg.cpp index 361cf5affcf..3cc0532d2b1 100644 --- a/src/physics_mg.cpp +++ b/src/physics_mg.cpp @@ -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);