1
0

switch back to unit time in seconds, prepare for parallel computing

This commit is contained in:
Thibault Barnouin
2021-12-17 15:17:34 +01:00
parent 34f9ed6ec7
commit 3614020ede
5 changed files with 79 additions and 10 deletions

View File

@@ -58,9 +58,9 @@ def leapfrog(dyn_syst, bin_syst, duration, dt, recover_param=False, display=Fals
if display and j % 10 == 0:
# display progression
if len(dyn_syst.bodylist) == 1:
d.on_running(dyn_syst, step=j, label="{0:.2f} years".format(j*dt))
d.on_running(dyn_syst, step=j, label="{0:.2f} years".format(j*dt/yr))
else:
d.on_running(dyn_syst, step=j, label="{0:.2f} years".format(j*dt))
d.on_running(dyn_syst, step=j, label="{0:.2f} years".format(j*dt/yr))
if display:
d.close()
if not savename is None: