mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 13:15:39 -04:00
Limit Random Ray Weight Window Generation to Final Batch (#3464)
This commit is contained in:
parent
3a8894c3f8
commit
2a0299aec7
1 changed files with 5 additions and 2 deletions
|
|
@ -400,8 +400,11 @@ void finalize_batch()
|
|||
simulation::time_tallies.stop();
|
||||
|
||||
// update weight windows if needed
|
||||
for (const auto& wwg : variance_reduction::weight_windows_generators) {
|
||||
wwg->update();
|
||||
if (settings::solver_type != SolverType::RANDOM_RAY ||
|
||||
simulation::current_batch == settings::n_batches) {
|
||||
for (const auto& wwg : variance_reduction::weight_windows_generators) {
|
||||
wwg->update();
|
||||
}
|
||||
}
|
||||
|
||||
// Reset global tally results
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue