From 564f7bba5c2617963459e111f32c00697e08e69f Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Sun, 9 Jan 2022 21:21:17 -0600 Subject: [PATCH] Fix: resetting particle split count in initialize_history. --- src/simulation.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/simulation.cpp b/src/simulation.cpp index 35d76ed87..772c90950 100644 --- a/src/simulation.cpp +++ b/src/simulation.cpp @@ -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 +