mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Apply weight windows at collisions in multigroup transport mode. (#3199)
This commit is contained in:
parent
d30b2e8014
commit
fbb115921c
1 changed files with 4 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue