reset n_event_ in initialize_history

This commit is contained in:
Gavin Ridley 2021-02-12 11:15:19 -05:00
parent ae4199cc2b
commit 5e76078ab7

View file

@ -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_;