Skip to content

Commit

Permalink
relaxed timing test
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Jun 24, 2024
1 parent 50cf8c4 commit f8df536
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rebound/tests/test_mercurius.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def get_sim():
# and are therefore machine dependent.
self.assertLess(dE_mercurius,5e-6) # reasonable precision for mercurius
self.assertLess(dE_mercurius/dE_whfast,1e-4) # at least 1e4 times better than whfast
self.assertLess(time_mercurius,time_ias15) # faster than ias15
self.assertLess(time_mercurius,5.0*time_ias15) # not much slower than ias15 (often fails in unit tests)
if sys.maxsize > 2**32: # 64 bit
self.assertEqual(7060.644251181158, sim.particles[5].x) # Check if bitwise unchanged

Expand Down

0 comments on commit f8df536

Please sign in to comment.