changeset 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 2dee6c9e827d
children 082c7bf3192e
files +grid/evalOn.m +noname/animate.m
diffstat 2 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
diff -r 2dee6c9e827d -r d196b7cdc626 +grid/evalOn.m
--- a/+grid/evalOn.m	Thu Sep 28 11:15:29 2017 +0200
+++ b/+grid/evalOn.m	Thu Sep 28 11:17:15 2017 +0200
@@ -40,7 +40,6 @@
     end
 
     gf = zeros(g.N*k, 1);
-    % keyboard
     for i = 1:g.N
         % (1 + (i-1)*k):(i*k)
         % func(x{i,:})
diff -r 2dee6c9e827d -r d196b7cdc626 +noname/animate.m
--- 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);