1
0

change save display step

This commit is contained in:
Thibault Barnouin
2021-11-19 15:55:50 +01:00
parent 12938d347b
commit bf825df249
4 changed files with 4 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ def leapfrog(dyn_syst, bin_syst, duration, dt, recover_param=False, display=Fals
sma[j] = bin_syst.sma
ecc[j] = bin_syst.ecc
if display and j % 5 == 0:
if display and j % 50 == 0:
# display progression
if len(dyn_syst.bodylist) == 1:
d.on_running(dyn_syst, step=j, label="step {0:d}/{1:d}".format(j, N))