Incorporation of comments from code review.

This commit is contained in:
John Tramm 2020-01-27 17:02:39 +00:00
parent 48a550aaf7
commit 02470bc630
8 changed files with 43 additions and 41 deletions

View file

@ -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);