mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Fix threshold index check for photoelectric cross sections
This commit is contained in:
parent
450359ac87
commit
7650ea42d2
1 changed files with 1 additions and 1 deletions
|
|
@ -303,7 +303,7 @@ void sample_photon_reaction(Particle* p)
|
|||
|
||||
// Check threshold of reaction
|
||||
int i_start = shell.threshold;
|
||||
if (i_grid <= i_start) continue;
|
||||
if (i_grid < i_start) continue;
|
||||
|
||||
// Evaluation subshell photoionization cross section
|
||||
double xs = std::exp(shell.cross_section(i_grid - i_start) +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue