Added cell_born attribute on Particle type.

This commit is contained in:
Paul Romano 2011-09-22 16:25:22 -04:00
parent a0a3f9831e
commit cd5e400fe2
4 changed files with 6 additions and 1 deletions

View file

@ -26,6 +26,7 @@ module particle_header
! Indices for various arrays
integer :: cell ! index for current cell
integer :: cell_born ! index for cell particle was born in
integer :: universe ! index for current universe
integer :: lattice ! index for current lattice
integer :: surface ! index for current surface

View file

@ -49,6 +49,9 @@ contains
"Could not locate cell for particle at: ", p % xyz
call fatal_error(msg)
end if
! set birth cell attribute
p % cell_born = p % cell
end if
if (verbosity >= 9) then

View file

@ -172,6 +172,7 @@ contains
p % wgt = ONE
p % alive = .true.
p % cell = 0
p % cell_born = 0
p % universe = 0
p % lattice = 0
p % surface = 0

View file

@ -297,7 +297,7 @@ contains
! determine next bornin bin
if (t % n_bornin_bins > 0) then
! bornin_bin = get_next_bin(MAP_BORNIN, p % bornin, i)
bornin_bin = get_next_bin(MAP_BORNIN, p % cell_born, i)
if (bornin_bin == NO_BIN_FOUND) cycle
else
bornin_bin = 1