Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

whfast stalls when exact_finish_time==1 #246

Closed
silburt opened this issue Jan 27, 2017 · 3 comments
Closed

whfast stalls when exact_finish_time==1 #246

silburt opened this issue Jan 27, 2017 · 3 comments
Labels

Comments

@silburt
Copy link
Contributor

silburt commented Jan 27, 2017

I've been trying to get outputs of some specific timestamps using whfast, but the integrator appears to stall. I can make it stall for a couple of different examples, but attached I've constructed a specific simple example that stalls on my computer.

I think that it's coming from the fact that whfast is trying to integrate to a specific time and having trouble getting to that exact timestamp. If I set exact_finish_time = 0, the integration will complete no problem.

whfast_stall.ipynb.zip

@hannorein hannorein added the bug label Jan 28, 2017
@hannorein
Copy link
Owner

Minimal example, reproducing the issue. Note that this is not related to WHFast. Also note that the timestep is almost exactly equal to the output interval.

import rebound
import numpy as np
sim = rebound.Simulation()
sim.integrator = "leapfrog"
sim.dt = 2*np.pi* 0.64108339**(1.5) / 31.
sim.add(m=0.92)
times = np.linspace(0,60,600)
exact_finish_time = 1
for t in times:
    print(t, sim.dt)
    sim.integrate(t, exact_finish_time)

@silburt
Copy link
Contributor Author

silburt commented Jan 28, 2017

Yes, I agree that it's not specific to WHFast. I also noticed that it stalls when trying different integrators too. In the future, I'll try and simplify my problem even more...

@hannorein
Copy link
Owner

hannorein commented Feb 6, 2021

See also #485

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants