Skip to content

Commit

Permalink
Read and apply max events value if present in the settings file.
Browse files Browse the repository at this point in the history
  • Loading branch information
pshriwise committed Apr 8, 2024
1 parent f7f0c85 commit 1d46a39
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ void get_run_parameters(pugi::xml_node node_base)
std::stoll(get_node_value(node_base, "max_particles_in_flight"));
}

// Get maximum number of events allowed per particle
if (check_for_node(node_base, "max_particle_events")) {
max_particle_events =
std::stoll(get_node_value(node_base, "max_particle_events"));
}

// Get number of basic batches
if (check_for_node(node_base, "batches")) {
n_batches = std::stoi(get_node_value(node_base, "batches"));
Expand Down

0 comments on commit 1d46a39

Please sign in to comment.