Mercurial > repos > public > sbplib
comparison +time/Timestepper.m @ 614:64a9a8a27858 feature/grids
Add assertion in time.Timestepper for robustness
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 11 Oct 2017 15:44:17 +0200 |
parents | b361a04894e3 |
children | 8894e9c49e40 |
comparison
equal
deleted
inserted
replaced
613:6490b5f950fb | 614:64a9a8a27858 |
---|---|
60 s = util.replace_string(s,''); | 60 s = util.replace_string(s,''); |
61 end | 61 end |
62 | 62 |
63 | 63 |
64 function [v, t] = stepTo(obj, n, progress_bar) | 64 function [v, t] = stepTo(obj, n, progress_bar) |
65 assertScalar(n); | |
65 default_arg('progress_bar',false); | 66 default_arg('progress_bar',false); |
66 | 67 |
67 [v, t] = obj.stepN(n-obj.n, progress_bar); | 68 [v, t] = obj.stepN(n-obj.n, progress_bar); |
68 end | 69 end |
69 | 70 |