mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Check for elastic scattering with isotropic mu.
This apparently happens for Sm150 in JEFF 3.2.
This commit is contained in:
parent
fa82543697
commit
fb9f7e2d42
1 changed files with 5 additions and 1 deletions
|
|
@ -481,7 +481,11 @@ contains
|
|||
! Sample scattering angle
|
||||
select type (dist => rxn % products(1) % distribution(1) % obj)
|
||||
type is (UncorrelatedAngleEnergy)
|
||||
mu_cm = dist % angle % sample(E)
|
||||
if (allocated(dist % angle % energy)) then
|
||||
mu_cm = dist % angle % sample(E)
|
||||
else
|
||||
mu_cm = TWO*prn() - ONE
|
||||
end if
|
||||
end select
|
||||
|
||||
! Determine direction cosines in CM
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue