From ef2fc8a87dd293abb0606660fc169d59c604cf68 Mon Sep 17 00:00:00 2001
From: Oliver Sander <sander@igpm.rwth-aachen.de>
Date: Fri, 29 Aug 2014 12:58:26 +0000
Subject: [PATCH] Replace 1.0 by T(1.0)

This fixes a dubious compiler error.

[[Imported from SVN: r9871]]
---
 dune/gfe/rotation.hh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dune/gfe/rotation.hh b/dune/gfe/rotation.hh
index c8dfe194..e83e1780 100644
--- a/dune/gfe/rotation.hh
+++ b/dune/gfe/rotation.hh
@@ -574,7 +574,7 @@ public:
         T sp = a.globalCoordinates() * b.globalCoordinates();
 
         // Scalar product may be larger than 1.0, due to numerical dirt
-        T dist = 2*std::acos( std::min(sp,1.0) );
+        T dist = 2*std::acos( std::min(sp,T(1.0)) );
 
         // Make sure we do the right thing if a and b are not in the same sheet
         // of the double covering of the unit quaternions over SO(3)
-- 
GitLab