Fixed bug in neighbor searching.

This commit is contained in:
Paul Romano 2012-01-19 23:30:33 -05:00
parent 971b2cc8c4
commit 95cfac061d

View file

@ -124,7 +124,9 @@ contains
! select cells based on whether we are searching a universe or a provided
! list of cells (this would be for lists of neighbor cells)
if (use_search_cells) then
index_cell = search_cells(i)
index_cell = search_cells(i)
! check to make sure search cell is in same universe
if (cells(index_cell) % universe /= p % coord % universe) cycle
else
index_cell = univ % cells(i)
end if