Skip to content

Commit

Permalink
Merge pull request openmc-dev#1761 from openmc-dev/reset_n_event
Browse files Browse the repository at this point in the history
Reset n_event in event_death
  • Loading branch information
jtramm committed Feb 12, 2021
2 parents ae4199c + 5e76078 commit b8a14b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/simulation.cpp
Expand Up @@ -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_;
Expand Down

0 comments on commit b8a14b8

Please sign in to comment.