Skip to content
Snippets Groups Projects
Commit 6dc69f86 authored by Karsten Rink's avatar Karsten Rink
Browse files

fixed two more warnings

parent 08391420
No related branches found
No related tags found
No related merge requests found
...@@ -49,7 +49,7 @@ public: ...@@ -49,7 +49,7 @@ public:
/// Change the integration order. /// Change the integration order.
void setIntegrationOrder(std::size_t order) void setIntegrationOrder(std::size_t order)
{ {
this->_n_sampl_pt = std::pow(order, N_DIM); this->_n_sampl_pt = static_cast<std::size_t>(std::pow(order, N_DIM));
this->_order = order; this->_order = order;
} }
......
...@@ -142,7 +142,7 @@ int main (int argc, char* argv[]) ...@@ -142,7 +142,7 @@ int main (int argc, char* argv[])
} }
{ {
const double mu(std::accumulate(src_properties.begin(), src_properties.end(), 0) / size); const double mu(std::accumulate(src_properties.begin(), src_properties.end(), 0.0) / size);
INFO("Mean value of source: %f.", mu); INFO("Mean value of source: %f.", mu);
double src_variance(MathLib::fastpow(src_properties[0] - mu, 2)); double src_variance(MathLib::fastpow(src_properties[0] - mu, 2));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment