Rename max_splits to max_history_splits, set default value to 1.0e7 (#2954)

Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
vanessalulla 2024-06-17 23:31:34 -04:00 committed by GitHub
parent ce4176deb5
commit 97537d5e9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 36 additions and 30 deletions

View file

@ -107,7 +107,7 @@ int max_order {0};
int n_log_bins {8000};
int n_batches;
int n_max_batches;
int max_splits {1000};
int max_history_splits {10'000'000};
int max_tracks {1000};
ResScatMethod res_scat_method {ResScatMethod::rvs};
double res_scat_energy_min {0.01};
@ -981,8 +981,9 @@ void read_settings_xml(pugi::xml_node root)
weight_windows_on = get_node_value_bool(root, "weight_windows_on");
}
if (check_for_node(root, "max_splits")) {
settings::max_splits = std::stoi(get_node_value(root, "max_splits"));
if (check_for_node(root, "max_history_splits")) {
settings::max_history_splits =
std::stoi(get_node_value(root, "max_history_splits"));
}
if (check_for_node(root, "max_tracks")) {