mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Merge branch 'master' into cmfd
This commit is contained in:
commit
2e69ee36ec
2 changed files with 16 additions and 4 deletions
|
|
@ -33,7 +33,7 @@ ifeq ($(COMPILER),intel)
|
|||
|
||||
# Debugging
|
||||
ifeq ($(DEBUG),yes)
|
||||
F90FLAGS += -g -traceback -ftrapuv -fp-stack-check -check all
|
||||
F90FLAGS += -g -traceback -ftrapuv -fp-stack-check -check all -fpe0
|
||||
LDFLAGS += -g
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -513,9 +513,21 @@ contains
|
|||
! Find cell in next lattice element
|
||||
call find_cell(p, found)
|
||||
if (.not. found) then
|
||||
message = "Could not locate particle " // trim(to_str(p % id)) // &
|
||||
" in universe " // to_str(universes(p % coord % universe) % id)
|
||||
call fatal_error()
|
||||
! In some circumstances, a particle crossing the corner of a cell may not
|
||||
! be able to be found in the next universe. In this scenario we cut off
|
||||
! all lower-level coordinates and search from universe zero
|
||||
|
||||
! Remove lower coordinates
|
||||
call deallocate_coord(p % coord0 % next)
|
||||
p % coord => p % coord0
|
||||
|
||||
! Search for particle
|
||||
call find_cell(p, found)
|
||||
if (.not. found) then
|
||||
message = "Could not locate particle " // trim(to_str(p % id)) // &
|
||||
" after crossing a lattice boundary."
|
||||
call fatal_error()
|
||||
end if
|
||||
end if
|
||||
|
||||
end subroutine cross_lattice
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue