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:
Sam Pasmann 2025-02-18 22:44:15 -05:00 committed by GitHub
parent 3011a14a13
commit d96e6860e6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 480 additions and 7 deletions

View file

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