mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Merge pull request #1000 from paulromano/latouter-fix
Fix bug when no outer lattice universe is defined
This commit is contained in:
commit
7a67ec02e2
1 changed files with 2 additions and 1 deletions
|
|
@ -355,9 +355,10 @@ contains
|
|||
else
|
||||
! Particle is outside the lattice.
|
||||
if (lat % outer == NO_OUTER_UNIVERSE) then
|
||||
call p % mark_as_lost("Particle " // trim(to_str(p %id)) &
|
||||
call warning("Particle " // trim(to_str(p %id)) &
|
||||
// " is outside lattice " // trim(to_str(lat % id)) &
|
||||
// " but the lattice has no defined outer universe.")
|
||||
found = .false.
|
||||
return
|
||||
else
|
||||
p % coord(j + 1) % universe = lat % outer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue