mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Change ncrystal_max_energy to be a global constant
This commit is contained in:
parent
fe4a1de57d
commit
e83ced88dc
5 changed files with 5 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue