mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
Add option for survival biasing source normalization (#3070)
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com> Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
9bfce4ee1c
commit
e8c9134ff6
9 changed files with 76 additions and 26 deletions
|
|
@ -586,6 +586,9 @@ void initialize_history(Particle& p, int64_t index_source)
|
|||
// Reset weight window ratio
|
||||
p.ww_factor() = 0.0;
|
||||
|
||||
// set particle history start weight
|
||||
p.wgt_born() = p.wgt();
|
||||
|
||||
// Reset pulse_height_storage
|
||||
std::fill(p.pht_storage().begin(), p.pht_storage().end(), 0);
|
||||
|
||||
|
|
@ -610,7 +613,7 @@ void initialize_history(Particle& p, int64_t index_source)
|
|||
write_message("Simulating Particle {}", p.id());
|
||||
}
|
||||
|
||||
// Add paricle's starting weight to count for normalizing tallies later
|
||||
// Add particle's starting weight to count for normalizing tallies later
|
||||
#pragma omp atomic
|
||||
simulation::total_weight += p.wgt();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue