From 6b4eb1f9fb87be9c7ea864ffaee46f2939d9cbee Mon Sep 17 00:00:00 2001
From: Dmitri Naumov <dmitri.naumov@ufz.de>
Date: Wed, 8 Mar 2017 16:32:35 +0100
Subject: [PATCH] [T] Use std::sqrt. Fix namespace.

---
 Tests/ProcessLib/TestLIE.cpp | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/Tests/ProcessLib/TestLIE.cpp b/Tests/ProcessLib/TestLIE.cpp
index 76e93394df5..6e9ca5b663a 100644
--- a/Tests/ProcessLib/TestLIE.cpp
+++ b/Tests/ProcessLib/TestLIE.cpp
@@ -51,7 +51,7 @@ std::unique_ptr<MeshLib::Mesh> createY()
 std::unique_ptr<MeshLib::Mesh> createXY()
 {
     // 45degree inclined
-    return createLine({{0.0, 0.0, 0.0}}, {{2./sqrt(2), 2./sqrt(2), 0.0}});
+    return createLine({{0.0, 0.0, 0.0}}, {{2./std::sqrt(2), 2./std::sqrt(2), 0.0}});
 }
 
 const double eps = std::numeric_limits<double>::epsilon();
@@ -102,15 +102,15 @@ TEST(LIE, rotationMatrixXY)
     auto e(msh->getElement(0));
     Eigen::Vector3d nv;
     ProcessLib::LIE::computeNormalVector(*e, 2, nv);
-    ASSERT_NEAR(-1./sqrt(2), nv[0], eps);
-    ASSERT_NEAR(1./sqrt(2), nv[1], eps);
+    ASSERT_NEAR(-1./std::sqrt(2), nv[0], eps);
+    ASSERT_NEAR(1./std::sqrt(2), nv[1], eps);
     ASSERT_EQ(0., nv[2]);
 
     Eigen::MatrixXd R(2,2);
     ProcessLib::LIE::computeRotationMatrix(*e, nv, 2, R);
 
-    ASSERT_NEAR(1./sqrt(2), R(0,0), eps);
-    ASSERT_NEAR(1./sqrt(2), R(0,1), eps);
-    ASSERT_NEAR(-1./sqrt(2), R(1,0), eps);
-    ASSERT_NEAR(1./sqrt(2), R(1,1), eps);
+    ASSERT_NEAR(1./std::sqrt(2), R(0,0), eps);
+    ASSERT_NEAR(1./std::sqrt(2), R(0,1), eps);
+    ASSERT_NEAR(-1./std::sqrt(2), R(1,0), eps);
+    ASSERT_NEAR(1./std::sqrt(2), R(1,1), eps);
 }
-- 
GitLab