mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Add a command-line argument for output verbosity (#3680)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
1b5033dab4
commit
bbfa18d72c
6 changed files with 22 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue