mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 05:05:30 -04:00
Add max_tracks setting (maximum number of tracks per process)
This commit is contained in:
parent
4f1e8f46f5
commit
e34bf445f0
9 changed files with 99 additions and 19 deletions
|
|
@ -95,6 +95,7 @@ int n_log_bins {8000};
|
|||
int n_batches;
|
||||
int n_max_batches;
|
||||
int max_splits {1000};
|
||||
int max_tracks {std::numeric_limits<int>::max()};
|
||||
ResScatMethod res_scat_method {ResScatMethod::rvs};
|
||||
double res_scat_energy_min {0.01};
|
||||
double res_scat_energy_max {1000.0};
|
||||
|
|
@ -877,6 +878,10 @@ void read_settings_xml()
|
|||
if (check_for_node(root, "max_splits")) {
|
||||
settings::max_splits = std::stoi(get_node_value(root, "max_splits"));
|
||||
}
|
||||
|
||||
if (check_for_node(root, "max_tracks")) {
|
||||
settings::max_tracks = std::stoi(get_node_value(root, "max_tracks"));
|
||||
}
|
||||
}
|
||||
|
||||
void free_memory_settings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue