mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-27 21:55:41 -04:00
Statistical weights in IndependentSource (#3195)
Co-authored-by: Paul Wilson <paul.wilson@wisc.edu> Co-authored-by: Paul Romano <paul.k.romano@gmail.com>
This commit is contained in:
parent
172867b1df
commit
ae37d6c0da
8 changed files with 157 additions and 30 deletions
|
|
@ -72,6 +72,7 @@ bool survival_biasing {false};
|
|||
bool temperature_multipole {false};
|
||||
bool trigger_on {false};
|
||||
bool trigger_predict {false};
|
||||
bool uniform_source_sampling {false};
|
||||
bool ufs_on {false};
|
||||
bool urr_ptables_on {true};
|
||||
bool weight_windows_on {false};
|
||||
|
|
@ -786,6 +787,12 @@ void read_settings_xml(pugi::xml_node root)
|
|||
sourcepoint_batch = statepoint_batch;
|
||||
}
|
||||
|
||||
// Check is the user specified to convert strength to statistical weight
|
||||
if (check_for_node(root, "uniform_source_sampling")) {
|
||||
uniform_source_sampling =
|
||||
get_node_value_bool(root, "uniform_source_sampling");
|
||||
}
|
||||
|
||||
// Check if the user has specified to write surface source
|
||||
if (check_for_node(root, "surf_source_write")) {
|
||||
surf_source_write = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue