mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Weight Window Birth Scaling (#3459)
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
3d16d4b100
commit
eaef13b9bc
3 changed files with 25 additions and 0 deletions
|
|
@ -614,6 +614,10 @@ void initialize_history(Particle& p, int64_t index_source)
|
|||
// Set particle track.
|
||||
p.write_track() = check_track_criteria(p);
|
||||
|
||||
// Set the particle's initial weight window value.
|
||||
p.wgt_ww_born() = -1.0;
|
||||
apply_weight_windows(p);
|
||||
|
||||
// Display message if high verbosity or trace is on
|
||||
if (settings::verbosity >= 9 || p.trace()) {
|
||||
write_message("Simulating Particle {}", p.id());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue