Moved redundant particle queuing code into its own function.

This commit is contained in:
John Tramm 2020-01-19 20:39:36 +00:00
parent 8c884a17de
commit b3821256cb
2 changed files with 69 additions and 98 deletions

View file

@ -624,11 +624,6 @@ void transport_event_based()
#pragma omp parallel for schedule(runtime)
for (auto i = 0; i < n_particles; i++) {
initialize_history(&simulation::particles[i], source_offset + i + 1);
}
// Add all particles to the XS lookup queue
#pragma omp parallel for schedule(runtime)
for (auto i = 0; i < n_particles; i++) {
dispatch_xs_event(i);
}