From ff5e49cdc7205223a0fb5d32ee12b409562e0c8e Mon Sep 17 00:00:00 2001
From: Gabriel Studer <gabriel.studer@unibas.ch>
Date: Fri, 7 Feb 2020 13:49:19 +0100
Subject: [PATCH] slightly relax dcd io unit test

The reason is that the check just scratches floating point accuracy and
occasionally failed on some machines
---
 modules/io/tests/test_io_dcd.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/io/tests/test_io_dcd.cc b/modules/io/tests/test_io_dcd.cc
index 270d371e8..1ae165d16 100644
--- a/modules/io/tests/test_io_dcd.cc
+++ b/modules/io/tests/test_io_dcd.cc
@@ -76,13 +76,13 @@ BOOST_AUTO_TEST_CASE(test_io_dcd_charmm_frames)
   BOOST_CHECK_EQUAL(cg2.GetFrameCount(),uint(1));
 
   mol::CoordFramePtr cf2 = cg2.GetFrame(0);
-  BOOST_CHECK(geom::Distance(cf2->GetCellSize(),cell_size)<1e-6);
-  BOOST_CHECK(geom::Distance(cf2->GetCellAngles(),cell_angles)<1e-6);
+  BOOST_CHECK(geom::Distance(cf2->GetCellSize(),cell_size)<1e-5);
+  BOOST_CHECK(geom::Distance(cf2->GetCellAngles(),cell_angles)<1e-5);
 
   geom::Vec3List atom_pos2=cg2.GetFramePositions(0);
 
   for(size_t i=0;i<natoms;++i) {
-    BOOST_CHECK(geom::Distance(atom_pos[i],atom_pos2[i])<1e-6);
+    BOOST_CHECK(geom::Distance(atom_pos[i],atom_pos2[i])<1e-5);
   }
 }
 
-- 
GitLab