From de2ca25f2dc16c09e890d8dfa61a8c35bb73a6e2 Mon Sep 17 00:00:00 2001
From: Matthieu Schaller <matthieu.schaller@durham.ac.uk>
Date: Thu, 28 Sep 2017 17:26:49 +0100
Subject: [PATCH] Updated too stringent limit for the calculation of the
 gravity derivatives.

---
 tests/testGravityDerivatives.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tests/testGravityDerivatives.c b/tests/testGravityDerivatives.c
index eb7894a464..1e58dcc49a 100644
--- a/tests/testGravityDerivatives.c
+++ b/tests/testGravityDerivatives.c
@@ -985,7 +985,7 @@ int main() {
 #endif
 #if SELF_GRAVITY_MULTIPOLE_ORDER > 2
 
-    tol *= 2.;
+    tol *= 2.5;
 
     /* 3rd order terms */
     test(pot.D_300, D_300(dx, dy, dz, r_inv), tol, min, "D_300");
@@ -1018,10 +1018,9 @@ int main() {
     test(pot.D_121, D_121(dx, dy, dz, r_inv), tol, min, "D_121");
     test(pot.D_112, D_112(dx, dy, dz, r_inv), tol, min, "D_112");
 #endif
-
 #if SELF_GRAVITY_MULTIPOLE_ORDER > 4
 
-    tol *= 2.;
+    tol *= 2.5;
 
     /* 5th order terms */
     test(pot.D_500, D_500(dx, dy, dz, r_inv), tol, min, "D_500");
-- 
GitLab