mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Randomized Quasi-Monte Carlo Sampling in The Random Ray Method (#3268)
Co-authored-by: John Tramm <john.tramm@gmail.com>
This commit is contained in:
parent
3011a14a13
commit
d96e6860e6
13 changed files with 480 additions and 7 deletions
|
|
@ -306,6 +306,17 @@ void get_run_parameters(pugi::xml_node node_base)
|
|||
FlatSourceDomain::adjoint_ =
|
||||
get_node_value_bool(random_ray_node, "adjoint");
|
||||
}
|
||||
if (check_for_node(random_ray_node, "sample_method")) {
|
||||
std::string temp_str =
|
||||
get_node_value(random_ray_node, "sample_method", true, true);
|
||||
if (temp_str == "prng") {
|
||||
RandomRay::sample_method_ = RandomRaySampleMethod::PRNG;
|
||||
} else if (temp_str == "halton") {
|
||||
RandomRay::sample_method_ = RandomRaySampleMethod::HALTON;
|
||||
} else {
|
||||
fatal_error("Unrecognized sample method: " + temp_str);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue