From e9985bb873e8a625525882dda95de929708cacba Mon Sep 17 00:00:00 2001
From: Elias Pipping <elias.pipping@fu-berlin.de>
Date: Sun, 11 Mar 2012 11:58:48 +0100
Subject: [PATCH] Fix assertion failure

---
 src/one-body-sample.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/one-body-sample.cc b/src/one-body-sample.cc
index c5b4f748..4e77cede 100644
--- a/src/one-body-sample.cc
+++ b/src/one-body-sample.cc
@@ -477,12 +477,12 @@ int main(int argc, char *argv[]) {
               double ret1 =
                   compute_state_update_bisection(h, unorm, L, s4_old[i][0]);
               assert(std::abs(1.0 / h * ret1 - (s4_old[i] - unorm / L) / h -
-                              exp(-ret1)) < 1e-11);
+                              exp(-ret1)) < 1e-10);
 
               double ret2 =
                   compute_state_update_lambert(h, unorm, L, s4_old[i][0]);
               assert(std::abs(1.0 / h * ret2 - (s4_old[i] - unorm / L) / h -
-                              exp(-ret2)) < 1e-11);
+                              exp(-ret2)) < 1e-10);
 
               assert(std::abs(ret2 - ret1) < 1e-14);
 
-- 
GitLab