From cee64db4057b872cda516d0832fc8cf2329166c1 Mon Sep 17 00:00:00 2001
From: Oliver Sander <oliver.sander@tu-dresden.de>
Date: Fri, 20 Nov 2015 16:55:47 +0100
Subject: [PATCH] Avoid some signed/unsigned warnings

---
 dune/gfe/localgeodesicfeadolcstiffness.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/gfe/localgeodesicfeadolcstiffness.hh b/dune/gfe/localgeodesicfeadolcstiffness.hh
index 52856876..467db871 100644
--- a/dune/gfe/localgeodesicfeadolcstiffness.hh
+++ b/dune/gfe/localgeodesicfeadolcstiffness.hh
@@ -254,7 +254,7 @@ assembleGradientAndHessian(const Entity& element,
 
     std::fill(v.begin(), v.end(), 0.0);
 
-    for (int i=0; i<nDofs; i++)
+    for (size_t i=0; i<nDofs; i++)
       for (int ii=0; ii<blocksize; ii++)
       {
         // Evaluate Hessian in the direction of each vector of the orthonormal frame
@@ -266,7 +266,7 @@ assembleGradientAndHessian(const Entity& element,
         if (rc < 0)
           DUNE_THROW(Dune::Exception, "ADOL-C has returned with error code " << rc << "!");
 
-        for (int j=0; j<nDoubles; j++)
+        for (size_t j=0; j<nDoubles; j++)
           embeddedHessian[i][j/embeddedBlocksize][ii][j%embeddedBlocksize] = w[j];
 
         // Make v the null vector again
-- 
GitLab