diff +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
line wrap: on
line diff
--- a/+noname/animate.m	Thu Sep 28 11:15:29 2017 +0200
+++ b/+noname/animate.m	Thu Sep 28 11:17:15 2017 +0200
@@ -88,7 +88,7 @@
         anim.animate(@G, Tstart, Tend, time_modifier);
     else
         pause
-        while true
+        while ts.t < Tend
             ts.step();
             sol = discretization.getTimeSnapshot(ts);
             update(sol);