From aa8fe04aaf87f00c083a51f967b82fe785c1fff1 Mon Sep 17 00:00:00 2001 From: Pedro Bernardinelli Date: Mon, 5 Feb 2024 13:16:03 -0800 Subject: [PATCH] Comment about iterative timestep --- src/sorcha/ephemeris/simulation_setup.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/sorcha/ephemeris/simulation_setup.py b/src/sorcha/ephemeris/simulation_setup.py index e32aa516..636f8fd9 100644 --- a/src/sorcha/ephemeris/simulation_setup.py +++ b/src/sorcha/ephemeris/simulation_setup.py @@ -142,6 +142,7 @@ 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)