Mercurial > repos > public > sbplib
changeset 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 | 6490b5f950fb |
| children | 68f9c16569fa |
| files | +time/Timestepper.m |
| diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
diff -r 6490b5f950fb -r 64a9a8a27858 +time/Timestepper.m --- a/+time/Timestepper.m Wed Oct 11 15:43:52 2017 +0200 +++ b/+time/Timestepper.m Wed Oct 11 15:44:17 2017 +0200 @@ -62,6 +62,7 @@ function [v, t] = stepTo(obj, n, progress_bar) + assertScalar(n); default_arg('progress_bar',false); [v, t] = obj.stepN(n-obj.n, progress_bar);
