mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 13:45:36 -04:00
Moved redundant particle queuing code into its own function.
This commit is contained in:
parent
8c884a17de
commit
b3821256cb
2 changed files with 69 additions and 98 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue