mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 20:45:35 -04:00
Resolve conflict with weight windows and global russian roulette (#3751)
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com>
This commit is contained in:
parent
5a85bd92f2
commit
c0427dd40a
13 changed files with 748 additions and 154 deletions
|
|
@ -1266,6 +1266,13 @@ void read_settings_xml(pugi::xml_node root)
|
|||
}
|
||||
}
|
||||
|
||||
if (weight_windows_on) {
|
||||
if (!weight_window_checkpoint_surface &&
|
||||
!weight_window_checkpoint_collision)
|
||||
fatal_error(
|
||||
"Weight Windows are enabled but there are no valid checkpoints.");
|
||||
}
|
||||
|
||||
if (check_for_node(root, "use_decay_photons")) {
|
||||
settings::use_decay_photons =
|
||||
get_node_value_bool(root, "use_decay_photons");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue