Implement user-configurable random number stride (#3067)

Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
ahman24 2025-03-05 08:26:38 +09:00 committed by GitHub
parent e2557bbe22
commit 239f7fed5e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 153 additions and 3 deletions

View file

@ -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);