mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 20:45:35 -04:00
reset n_event_ in initialize_history
This commit is contained in:
parent
ae4199cc2b
commit
5e76078ab7
1 changed files with 3 additions and 0 deletions
|
|
@ -472,6 +472,9 @@ void initialize_history(Particle& p, int64_t index_source)
|
|||
// set progeny count to zero
|
||||
p.n_progeny_ = 0;
|
||||
|
||||
// Reset particle event counter
|
||||
p.n_event_ = 0;
|
||||
|
||||
// set random number seed
|
||||
int64_t particle_seed = (simulation::total_gen + overall_generation() - 1)
|
||||
* settings::n_particles + p.id_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue