Reset ww ratio when initializing particle history

This commit is contained in:
Patrick Shriwise 2022-02-02 17:46:43 -06:00
parent c0f1fb85e7
commit 86ac407544

View file

@ -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 +