Add a command-line argument for output verbosity (#3680)

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
Kevin Sawatzky 2025-12-12 03:29:43 -06:00 committed by GitHub
parent 1b5033dab4
commit bbfa18d72c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 22 additions and 4 deletions

View file

@ -145,7 +145,7 @@ int trace_gen;
int64_t trace_particle;
vector<array<int, 3>> track_identifiers;
int trigger_batch_interval {1};
int verbosity {7};
int verbosity {-1};
double weight_cutoff {0.25};
double weight_survive {1.0};
@ -396,8 +396,10 @@ void read_settings_xml()
xml_node root = doc.document_element();
// Verbosity
if (check_for_node(root, "verbosity")) {
if (check_for_node(root, "verbosity") && verbosity == -1) {
verbosity = std::stoi(get_node_value(root, "verbosity"));
} else if (verbosity == -1) {
verbosity = 7;
}
// To this point, we haven't displayed any output since we didn't know what