Mercurial > repos > public > sbplib
diff +time/Timestepper.m @ 1113:47e86b5270ad feature/timesteppers
Change name of property k to dt in time.Timestepper
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 10 Apr 2019 22:40:55 +0200 |
parents | a99f00896b8e |
children |
line wrap: on
line diff
--- a/+time/Timestepper.m Wed Apr 10 22:22:46 2019 +0200 +++ b/+time/Timestepper.m Wed Apr 10 22:40:55 2019 +0200 @@ -1,7 +1,7 @@ classdef Timestepper < handle properties (Abstract) t - k % TBD: should this be a method instead? + dt % TBD: should this be a method instead? n end @@ -81,7 +81,7 @@ end function evolve_without_progress(obj, tend) - while obj.t < tend - obj.k/2 + while obj.t < tend - obj.dt/2 obj.step(); end end @@ -93,7 +93,7 @@ steps_since_update = 0; last_update = tic(); s = util.replace_string('',' %d %%',0); - while obj.t < tend - obj.k/2 + while obj.t < tend - obj.dt/2 obj.step(); steps_since_update = steps_since_update + 1;