mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Merge pull request #1947 from pshriwise/ww-final-tests
Weight windows final push
This commit is contained in:
commit
72af700ffd
30 changed files with 2244 additions and 18 deletions
|
|
@ -23,6 +23,7 @@
|
|||
#include "openmc/string_utils.h"
|
||||
#include "openmc/tallies/tally.h"
|
||||
#include "openmc/thermal.h"
|
||||
#include "openmc/weight_windows.h"
|
||||
|
||||
#include <fmt/core.h>
|
||||
|
||||
|
|
@ -44,9 +45,15 @@ void collision(Particle& p)
|
|||
switch (p.type()) {
|
||||
case ParticleType::neutron:
|
||||
sample_neutron_reaction(p);
|
||||
if (settings::weight_windows_on) {
|
||||
apply_weight_windows(p);
|
||||
}
|
||||
break;
|
||||
case ParticleType::photon:
|
||||
sample_photon_reaction(p);
|
||||
if (settings::weight_windows_on) {
|
||||
apply_weight_windows(p);
|
||||
}
|
||||
break;
|
||||
case ParticleType::electron:
|
||||
sample_electron_reaction(p);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue