Skip to content

Commit

Permalink
no mercurius time tests on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Dec 31, 2024
1 parent d844cab commit b124d00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rebound/tests/test_mercurius.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import unittest
import sys
import warnings
import os
from datetime import datetime

class TestMercurius(unittest.TestCase):
Expand Down Expand Up @@ -312,7 +313,8 @@ 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,5.0*time_ias15) # not much slower than ias15 (often fails in unit tests)
if os.getenv("CI") != "true":
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 b124d00

Please sign in to comment.