mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Fix distance-to-surface calculationg for general plane surface.
This commit is contained in:
parent
ec21addbee
commit
4439de571f
1 changed files with 1 additions and 1 deletions
|
|
@ -892,7 +892,7 @@ contains
|
|||
if (on_surface .or. tmp == ZERO) then
|
||||
d = INFINITY
|
||||
else
|
||||
d = -(A*x + B*y + C*w - D)/tmp
|
||||
d = -(A*x + B*y + C*z - D)/tmp
|
||||
if (d < ZERO) d = INFINITY
|
||||
end if
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue