Merge pull request #1947 from pshriwise/ww-final-tests

Weight windows final push
This commit is contained in:
Paul Romano 2022-01-19 09:13:07 -06:00 committed by GitHub
commit 72af700ffd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 2244 additions and 18 deletions

View file

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