mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Merge pull request #299 from paulromano/plane-distance-fix
Fix distance-to-surface calculation for general plane surface
This commit is contained in:
commit
aba19aba77
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