Fix: resetting particle split count in initialize_history.

This commit is contained in:
Patrick Shriwise 2022-01-09 21:21:17 -06:00
parent c25403e788
commit 564f7bba5c

View file

@ -487,6 +487,9 @@ void initialize_history(Particle& p, int64_t index_source)
// Reset particle event counter
p.n_event() = 0;
// Reset split counter
p.n_split() = 0;
// set random number seed
int64_t particle_seed =
(simulation::total_gen + overall_generation() - 1) * settings::n_particles +