From 98001b605adb5a7b2a3ad2413bf1918e64400afe Mon Sep 17 00:00:00 2001 From: Oliver Sander <sander@igpm.rwth-aachen.de> Date: Fri, 6 Sep 2013 11:03:04 +0000 Subject: [PATCH] Fix signed/unsigned warning [[Imported from SVN: r9476]] --- dune/gfe/targetspacertrsolver.cc | 2 +- dune/gfe/targetspacertrsolver.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dune/gfe/targetspacertrsolver.cc b/dune/gfe/targetspacertrsolver.cc index c1c4d5aa..9851b6ae 100644 --- a/dune/gfe/targetspacertrsolver.cc +++ b/dune/gfe/targetspacertrsolver.cc @@ -57,7 +57,7 @@ void TargetSpaceRiemannianTRSolver<TargetSpace>::solve() // ///////////////////////////////////////////////////// // Trust-Region Solver // ///////////////////////////////////////////////////// - for (int i=0; i<maxTrustRegionSteps_; i++) { + for (size_t i=0; i<maxTrustRegionSteps_; i++) { if (this->verbosity_ == Solver::FULL) { std::cout << "----------------------------------------------------" << std::endl; diff --git a/dune/gfe/targetspacertrsolver.hh b/dune/gfe/targetspacertrsolver.hh index 8c34f20e..bd3baea6 100644 --- a/dune/gfe/targetspacertrsolver.hh +++ b/dune/gfe/targetspacertrsolver.hh @@ -61,7 +61,7 @@ protected: double initialTrustRegionRadius_; /** \brief Maximum number of trust-region steps */ - int maxTrustRegionSteps_; + size_t maxTrustRegionSteps_; /** \brief Maximum number of multigrid iterations */ int innerIterations_; -- GitLab