diff --git a/src/bisection-simpler-example2-gradient.cc b/src/bisection-simpler-example2-gradient.cc index 14d702165f2a0018ac90d16d512600ccf9249d36..e6a7ed69bc0f413862ff2d5ce5b53ac25534a5a8 100644 --- a/src/bisection-simpler-example2-gradient.cc +++ b/src/bisection-simpler-example2-gradient.cc @@ -45,7 +45,7 @@ class SampleFunctional : public SmallFunctional<dimension> { return d(x) * dir; } - SmallVector minimise(const SmallVector x, int iterations) const { + SmallVector minimise(const SmallVector x, unsigned int iterations) const { SmallVector descDir = d(x); descDir *= -1; // The negative gradient @@ -80,7 +80,7 @@ class SampleFunctional : public SmallFunctional<dimension> { double m = l / 2 + r / 2; SmallVector middle; - for (size_t count = 0; count < iterations; ++count) { + for (unsigned int count = 0; count < iterations; ++count) { Dune::dverb << "now at m = " << m << std::endl; Dune::dverb << "Value of J here: " << operator()(x + middle) << std::endl;