mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-21 14:35:27 -04:00
Fix S2 Random Ray Casting Issue (#3825)
This commit is contained in:
parent
efefdb17b1
commit
53ce1910f9
1 changed files with 1 additions and 1 deletions
|
|
@ -895,7 +895,7 @@ SourceSite RandomRay::sample_s2()
|
|||
site.r = space->sample(current_seed()).first;
|
||||
|
||||
// Sample either left or right for S2 (flashlight) transport.
|
||||
site.u = {prn(current_seed()) < 0.5 ? -1 : 1, 0.0, 0.0};
|
||||
site.u = {prn(current_seed()) < 0.5 ? -1.0 : 1.0, 0.0, 0.0};
|
||||
|
||||
return site;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue