diff +time/Timestepper.m @ 832:5573913a0949 feature/burgers1d

Merged with default, and updated +scheme/Burgers1D accordingly
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Tue, 11 Sep 2018 15:58:35 +0200
parents 64a9a8a27858
children 8894e9c49e40
line wrap: on
line diff
--- a/+time/Timestepper.m	Tue Sep 11 13:24:08 2018 +0200
+++ b/+time/Timestepper.m	Tue Sep 11 15:58:35 2018 +0200
@@ -60,6 +60,14 @@
             s = util.replace_string(s,'');
         end
 
+
+        function [v, t] = stepTo(obj, n, progress_bar)
+            assertScalar(n);
+            default_arg('progress_bar',false);
+
+            [v, t] = obj.stepN(n-obj.n, progress_bar);
+        end
+
         function [v,t] = evolve(obj, tend, progress_bar)
             default_arg('progress_bar',false)
             if ~progress_bar