Skip to content

Commit

Permalink
Merge pull request #809 from dirac-institute/timestep
Browse files Browse the repository at this point in the history
Turns off the new rebound adaptive timestep
  • Loading branch information
bernardinelli authored Feb 5, 2024
2 parents e107853 + aa8fe04 commit 831d983
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sorcha/ephemeris/simulation_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ def generate_simulations(ephem, gm_sun, gm_total, orbits_df, args):
sim = rebound.Simulation()
sim.t = epoch - ephem.jd_ref
sim.dt = 10

# This turns off the iterative timestep introduced in arXiv:2401.02849 and default since rebound 4.0.3
sim.ri_ias15.adaptive_mode = 1
# Add the particle to the simulation
sim.add(ic)

Expand Down

0 comments on commit 831d983

Please sign in to comment.