From b2abb190793a261bbee51c470471e7c3c584a91c Mon Sep 17 00:00:00 2001
From: Jonathan Youett <youett@mi.fu-berlin.de>
Date: Tue, 25 Oct 2011 10:33:41 +0000
Subject: [PATCH] avoid compiler warnings

[[Imported from SVN: r8021]]
---
 dune/gfe/globalgfetestfunction.hh     | 4 +---
 dune/gfe/localgfetestfunctionbasis.hh | 2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/dune/gfe/globalgfetestfunction.hh b/dune/gfe/globalgfetestfunction.hh
index a14c2bfc..a74f06b0 100644
--- a/dune/gfe/globalgfetestfunction.hh
+++ b/dune/gfe/globalgfetestfunction.hh
@@ -68,8 +68,6 @@ template<class Basis, class TargetSpace, class CoefficientType>
 void GlobalGFETestFunction<Basis,TargetSpace,CoefficientType>::evaluateLocal(const Element& element, const Dune::FieldVector<ctype,gridDim>& local, 
                                                              EmbeddedTangentVector& out) const
 {
-    int numOfBasisFct = basis_.getLocalFiniteElement(element).localBasis().size(); 
-
     // values of the test basis functions 
     std::vector<Dune::array<EmbeddedTangentVector, tangentDim> > values;
 
@@ -79,7 +77,7 @@ void GlobalGFETestFunction<Basis,TargetSpace,CoefficientType>::evaluateLocal(con
     // multiply values with the corresponding test coefficients and sum them up
     out = 0;
 
-    for (int i=0; i<values.size(); i++) {
+    for (size_t i=0; i<values.size(); i++) {
         int index = basis_.index(element,i);
         for (int j=0; j<tangentDim; j++) {
             values[i][j] *= coefficients_[index][j];
diff --git a/dune/gfe/localgfetestfunctionbasis.hh b/dune/gfe/localgfetestfunctionbasis.hh
index 34b35377..6e786c8c 100644
--- a/dune/gfe/localgfetestfunctionbasis.hh
+++ b/dune/gfe/localgfetestfunctionbasis.hh
@@ -192,7 +192,7 @@ void LocalGfeTestFunctionBasis<LocalFiniteElement,TargetSpace>::evaluateJacobian
             // Add that to the result.
             for (int k=0; k<embeddedDim; k++)
                 for (int l=0; l<embeddedDim; l++)
-                    for (size_t m=0; m<dim; m++)
+                    for (int m=0; m<dim; m++)
                         out[i][j][k][m] += derivative[k][l][m] * basisVectors[j][l];
         }
     }
-- 
GitLab