Skip to content

Commit

Permalink
Apply weight windows at collisions for multigroup transport if specified
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Nov 14, 2024
1 parent d30b2e8 commit 107aa58
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/physics_mg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#include "openmc/settings.h"
#include "openmc/simulation.h"
#include "openmc/tallies/tally.h"
#include "openmc/weight_windows.h"

namespace openmc {

Expand All @@ -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);

Expand Down

0 comments on commit 107aa58

Please sign in to comment.