mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
Implement user-configurable random number stride (#3067)
Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
e2557bbe22
commit
239f7fed5e
16 changed files with 153 additions and 3 deletions
|
|
@ -514,6 +514,12 @@ void read_settings_xml(pugi::xml_node root)
|
|||
openmc_set_seed(seed);
|
||||
}
|
||||
|
||||
// Copy random number stride if specified
|
||||
if (check_for_node(root, "stride")) {
|
||||
auto stride = std::stoull(get_node_value(root, "stride"));
|
||||
openmc_set_stride(stride);
|
||||
}
|
||||
|
||||
// Check for electron treatment
|
||||
if (check_for_node(root, "electron_treatment")) {
|
||||
auto temp_str = get_node_value(root, "electron_treatment", true, true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue