mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 06:05:58 -04:00
Apply Weight Window Upon Surface Crossing (#2670)
Co-authored-by: Patrick Shriwise <pshriwise@gmail.com> Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
9b7b33c7fa
commit
9cf2f22f24
8 changed files with 97 additions and 8 deletions
|
|
@ -74,6 +74,8 @@ bool trigger_predict {false};
|
|||
bool ufs_on {false};
|
||||
bool urr_ptables_on {true};
|
||||
bool weight_windows_on {false};
|
||||
bool weight_window_checkpoint_surface {false};
|
||||
bool weight_window_checkpoint_collision {true};
|
||||
bool write_all_tracks {false};
|
||||
bool write_initial_source {false};
|
||||
|
||||
|
|
@ -974,6 +976,19 @@ void read_settings_xml(pugi::xml_node root)
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Set up weight window checkpoints
|
||||
if (check_for_node(root, "weight_window_checkpoints")) {
|
||||
xml_node ww_checkpoints = root.child("weight_window_checkpoints");
|
||||
if (check_for_node(ww_checkpoints, "collision")) {
|
||||
weight_window_checkpoint_collision =
|
||||
get_node_value_bool(ww_checkpoints, "collision");
|
||||
}
|
||||
if (check_for_node(ww_checkpoints, "surface")) {
|
||||
weight_window_checkpoint_surface =
|
||||
get_node_value_bool(ww_checkpoints, "surface");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void free_memory_settings()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue