diff +noname/animate.m @ 609:8cbecf22075b feature/utux2D

Merge to get interpolation operators.
author Martin Almquist <malmquist@stanford.edu>
date Sat, 14 Oct 2017 22:36:31 -0700
parents 082c7bf3192e
children c9147e05d228
line wrap: on
line diff
--- a/+noname/animate.m	Thu Oct 05 20:21:20 2017 -0700
+++ b/+noname/animate.m	Sat Oct 14 22:36:31 2017 -0700
@@ -1,10 +1,10 @@
-% hand = noname.animate(discretization, time_modifier, Tend, dirname, opt)
+% noname.animate(discretization, time_modifier, Tend, dirname, opt)
 %
 % Example:
 %      noname.animate(discr,timemodifier,tend)
 %      noname.animate(discr,1, [tstart tend],'my_mov', opt)
 
-function hand = animate(discretization, time_modifier, Tend, dirname, opt)
+function animate(discretization, time_modifier, Tend, dirname, opt)
     default_arg('time_modifier', 1);
     default_arg('Tend', Inf);
     default_arg('dirname', '');
@@ -87,7 +87,8 @@
         pause
         anim.animate(@G, Tstart, Tend, time_modifier);
     else
-        while true
+        pause
+        while ts.t < Tend
             ts.step();
             sol = discretization.getTimeSnapshot(ts);
             update(sol);