mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Incorporation of comments from code review.
This commit is contained in:
parent
48a550aaf7
commit
02470bc630
8 changed files with 43 additions and 41 deletions
|
|
@ -77,7 +77,7 @@ int openmc_simulation_init()
|
|||
// and event queues
|
||||
if (settings::event_based) {
|
||||
int64_t event_buffer_length = std::min(simulation::work_per_rank,
|
||||
settings::max_in_flight_particles);
|
||||
settings::max_particles_in_flight);
|
||||
init_event_queues(event_buffer_length);
|
||||
}
|
||||
|
||||
|
|
@ -617,7 +617,7 @@ void transport_event_based()
|
|||
// loop is executed multiple times until all particles have been completed.
|
||||
while (remaining_work > 0) {
|
||||
// Figure out # of particles to run for this subiteration
|
||||
int64_t n_particles = std::min(remaining_work, settings::max_in_flight_particles);
|
||||
int64_t n_particles = std::min(remaining_work, settings::max_particles_in_flight);
|
||||
|
||||
// Initialize all particle histories for this subiteration
|
||||
process_init_events(n_particles, source_offset);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue