From cbad9fc1be3c42adaf7c536af8760d7c5a39e7a5 Mon Sep 17 00:00:00 2001 From: Jose Ignacio Marquez Damian <22483345+marquezj@users.noreply.github.com> Date: Fri, 28 Apr 2023 11:09:13 -0300 Subject: [PATCH] Bank particles in all active cycles --- src/particle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/particle.cpp b/src/particle.cpp index 1ec95a4ae67..ef4c983ce62 100644 --- a/src/particle.cpp +++ b/src/particle.cpp @@ -400,7 +400,7 @@ void Particle::cross_surface() write_message(1, " Crossing surface {}", surf->id_); } - if (surf->surf_source_ && simulation::current_batch == settings::n_batches) { + if (surf->surf_source_ && simulation::current_batch > settings::n_inactive) { SourceSite site; site.r = r(); site.u = u();