mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Added check to make sure mu was between -1 and 1 to help with tallying. This will probably result in changes to the tests.
This commit is contained in:
parent
a64255bdc8
commit
dc13a47dda
1 changed files with 7 additions and 0 deletions
|
|
@ -388,6 +388,13 @@ contains
|
|||
|
||||
end if
|
||||
|
||||
! Check p % mu to ensure it falls within the expected range
|
||||
if (p % mu < -ONE) then
|
||||
p % mu = -ONE
|
||||
else if (p % mu > ONE) then
|
||||
p % mu = ONE
|
||||
end if
|
||||
|
||||
! Set event component
|
||||
p % event = EVENT_SCATTER
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue