From aaf4108c9c62ffcf9044afbf37a8f68f98ee5fa7 Mon Sep 17 00:00:00 2001
From: Jonathan Youett <youett@mi.fu-berlin.de>
Date: Wed, 30 May 2012 14:20:44 +0000
Subject: [PATCH] avoid compiler warning: size_t -> int and inverse() doesn't
 return a Rotation

[[Imported from SVN: r8687]]
---
 dune/gfe/averageinterface.hh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dune/gfe/averageinterface.hh b/dune/gfe/averageinterface.hh
index dd3bc75f..06a664f2 100644
--- a/dune/gfe/averageinterface.hh
+++ b/dune/gfe/averageinterface.hh
@@ -195,7 +195,7 @@ get_bounds_info(Ipopt::Index n, Ipopt::Number* x_l, Ipopt::Number* x_u,
     //assert(m == 0);
 
     // Be on the safe side: unset all variable bounds
-    for (size_t i=0; i<n; i++) {
+    for (int i=0; i<n; i++) {
         x_l[i] = -std::numeric_limits<double>::max();
         x_u[i] =  std::numeric_limits<double>::max();
     }
@@ -875,7 +875,7 @@ void setRotation(const BoundaryPatch<GridView>& dirichletBoundary,
 
     // Get the relative rotation, first as a quaternion...
     Rotation<double,3> relativeRotation;
-    relativeRotation = referenceInterface.q.inverse();
+    relativeRotation = Rotation<double,3>(referenceInterface.q.inverse());
     relativeRotation = lambda.q.mult(relativeRotation);
 
     // ... then as a matrix
-- 
GitLab