mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Corrected bug in TTB photon energy sampling introduced in 492a4e950f
This commit is contained in:
parent
c912cdce70
commit
f37d2fcbce
1 changed files with 1 additions and 0 deletions
|
|
@ -626,6 +626,7 @@ contains
|
|||
p_r = mat % pdf(i_w+1, i_e)
|
||||
c_l = mat % cdf(i_w, i_e)
|
||||
a = log(p_r/p_l)/(w_r - w_l) + ONE
|
||||
w = exp(w_l)*(a*(c - c_l)/(exp(w_l)*p_l) + ONE)**(ONE/a)
|
||||
|
||||
if (w > energy_cutoff(PHOTON)) then
|
||||
! Create secondary photon
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue