From 86ac407544106e3ff3c46960e44271bde43eede7 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Wed, 2 Feb 2022 17:46:43 -0600 Subject: [PATCH] Reset ww ratio when initializing particle history --- src/simulation.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/simulation.cpp b/src/simulation.cpp index 772c90950..b7f5b58f1 100644 --- a/src/simulation.cpp +++ b/src/simulation.cpp @@ -490,6 +490,9 @@ void initialize_history(Particle& p, int64_t index_source) // Reset split counter p.n_split() = 0; + // Reset weight window ratio + p.ww_factor() = 0.0; + // set random number seed int64_t particle_seed = (simulation::total_gen + overall_generation() - 1) * settings::n_particles +