Limit Random Ray Weight Window Generation to Final Batch (#3464)

This commit is contained in:
John Tramm 2025-06-24 15:20:26 -05:00 committed by GitHub
parent 3a8894c3f8
commit 2a0299aec7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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