Mercurial > repos > public > sbplib
changeset 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 | d52e5cdb6eff |
children | 967152d7d58b |
files | +time/Timestepper.m |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
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;