mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 22:26:08 -04:00
Converting to unsigned long long for number of samples in volume calc.
This commit is contained in:
parent
f47e35da75
commit
d213373a4b
1 changed files with 1 additions and 8 deletions
|
|
@ -59,14 +59,7 @@ VolumeCalculation::VolumeCalculation(pugi::xml_node node)
|
|||
domain_ids_ = get_node_array<int>(node, "domain_ids");
|
||||
lower_left_ = get_node_array<double>(node, "lower_left");
|
||||
upper_right_ = get_node_array<double>(node, "upper_right");
|
||||
std::stringstream size_t_stream(get_node_value(node, "samples"));
|
||||
size_t_stream >> n_samples_;
|
||||
if (size_t_stream.fail()) {
|
||||
std::stringstream msg;
|
||||
msg << "Could not read number of samples ("
|
||||
<< size_t_stream.str() << ")";
|
||||
fatal_error(msg);
|
||||
}
|
||||
n_samples_ = std::stoull(get_node_value(node, "samples"));
|
||||
|
||||
if (check_for_node(node, "threshold")) {
|
||||
pugi::xml_node threshold_node = node.child("threshold");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue