Mercurial > repos > public > sbplib
comparison +noname/animate.m @ 603:d196b7cdc626 feature/grids
Respect end time in step mode
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 28 Sep 2017 11:17:15 +0200 |
parents | 0da1c913a611 |
children | 082c7bf3192e |
comparison
equal
deleted
inserted
replaced
602:2dee6c9e827d | 603:d196b7cdc626 |
---|---|
86 if ~do_step | 86 if ~do_step |
87 pause | 87 pause |
88 anim.animate(@G, Tstart, Tend, time_modifier); | 88 anim.animate(@G, Tstart, Tend, time_modifier); |
89 else | 89 else |
90 pause | 90 pause |
91 while true | 91 while ts.t < Tend |
92 ts.step(); | 92 ts.step(); |
93 sol = discretization.getTimeSnapshot(ts); | 93 sol = discretization.getTimeSnapshot(ts); |
94 update(sol); | 94 update(sol); |
95 drawnow | 95 drawnow |
96 | 96 |