Merge pull request #1000 from paulromano/latouter-fix

Fix bug when no outer lattice universe is defined
This commit is contained in:
Giud 2018-05-02 17:58:00 -04:00 committed by GitHub
commit 7a67ec02e2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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