From d213373a4ba18d4bea3a13b8d576b823d758d9d9 Mon Sep 17 00:00:00 2001 From: Patrick Shriwise Date: Mon, 14 Oct 2019 20:55:52 -0500 Subject: [PATCH] Converting to unsigned long long for number of samples in volume calc. --- src/volume_calc.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/volume_calc.cpp b/src/volume_calc.cpp index 2c4aa82878..aa685e3533 100644 --- a/src/volume_calc.cpp +++ b/src/volume_calc.cpp @@ -59,14 +59,7 @@ VolumeCalculation::VolumeCalculation(pugi::xml_node node) domain_ids_ = get_node_array(node, "domain_ids"); lower_left_ = get_node_array(node, "lower_left"); upper_right_ = get_node_array(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");