mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 05:35:49 -04:00
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:
parent
ce4176deb5
commit
97537d5e9a
11 changed files with 36 additions and 30 deletions
|
|
@ -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")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue