Change ncrystal_max_energy to be a global constant

This commit is contained in:
Paul Romano 2023-01-11 01:17:53 +07:00
parent fe4a1de57d
commit e83ced88dc
5 changed files with 5 additions and 5 deletions

View file

@ -142,7 +142,7 @@ void sample_neutron_reaction(Particle& p)
// Sample a scattering reaction and determine the secondary energy of the
// exiting neutron
const auto& ncrystal_mat = model::materials[p.material()]->ncrystal_mat();
if (ncrystal_mat && p.E() < settings::ncrystal_max_energy) {
if (ncrystal_mat && p.E() < NCRYSTAL_MAX_ENERGY) {
ncrystal_mat.scatter(p);
} else {
scatter(p, i_nuclide);