mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Added cell_born attribute on Particle type.
This commit is contained in:
parent
a0a3f9831e
commit
cd5e400fe2
4 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue