Mercurial > repos > public > sbplib
diff +time/Timestepper.m @ 126:54055b32d516
Changed evolve so that it always stops as close to tend as possible.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 01 Feb 2016 17:08:19 +0100 |
parents | f7975c054bc3 |
children | b361a04894e3 b5e5b195da1e |
line wrap: on
line diff
--- a/+time/Timestepper.m Wed Jan 27 17:37:23 2016 +0100 +++ b/+time/Timestepper.m Mon Feb 01 17:08:19 2016 +0100 @@ -72,7 +72,7 @@ end function evolve_without_progress(obj, tend) - while obj.t < tend - obj.k/100 + while obj.t < tend - obj.k/2 obj.step(); end end @@ -84,7 +84,7 @@ steps_since_update = 0; last_update = tic(); s = util.replace_string('',' %d %%',0); - while obj.t < tend - obj.k/100 + while obj.t < tend - obj.k/2 obj.step(); steps_since_update = steps_since_update + 1;