Skip to content

Commit

Permalink
Bank particles in all active cycles
Browse files Browse the repository at this point in the history
  • Loading branch information
marquezj committed Apr 28, 2023
1 parent 4cadcbc commit cbad9fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/particle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit cbad9fc

Please sign in to comment.