Since the rebound update to 4.0.3, we noticed some of our orbits were taking a long time to run, or in some cases hanging indefinitely. Pinning the version to 4.0.2 resolves the issue. The following code recreates the behavior:
import rebound
import assist
this_breaks = True
print(f"rebound version: {rebound.__version__}")
ephem = assist.Ephem("../data/linux_p1550p2650.440", "../data/sb441-n16.bsp")
sim = rebound.Simulation()
sim.t = 14658.412205805536
if this_breaks:
sim.add(
x=-0.9716337587843651,
y=0.5557887162674847,
z=0.15913299510349357,
vx=-0.004071385625678586,
vy=-0.016941109480633685,
vz=-0.004809720968068568,
)
else:
sim.add(
x=-0.971634,
y=0.555789,
z=0.159133,
vx=-0.004071,
vy=-0.016941,
vz=-0.00481,
)
ax = assist.Extras(sim, ephem)
sim.integrate(14718.412205805536)
I don't know if it's helpful or not, but the truncated values do not produce the same error, which is why I was having trouble recreating the issue.
Since the rebound update to 4.0.3, we noticed some of our orbits were taking a long time to run, or in some cases hanging indefinitely. Pinning the version to 4.0.2 resolves the issue. The following code recreates the behavior:
I don't know if it's helpful or not, but the truncated values do not produce the same error, which is why I was having trouble recreating the issue.