mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Reset ww ratio when initializing particle history
This commit is contained in:
parent
c0f1fb85e7
commit
86ac407544
1 changed files with 3 additions and 0 deletions
|
|
@ -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 +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue