Mercurial > repos > public > sbplib
diff +noname/Discretization.m @ 80:14bf01b7a068
Changed noname.animate and noname.Discretization to use a opt struct for timestepper options.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 25 Nov 2015 18:33:49 +0100 |
parents | 7067bf8adbfa |
children | ceba6be0389f |
line wrap: on
line diff
--- a/+noname/Discretization.m Wed Nov 25 18:32:29 2015 +0100 +++ b/+noname/Discretization.m Wed Nov 25 18:33:49 2015 +0100 @@ -23,11 +23,12 @@ % Calculates a timestep for the discretization and a given timestepping method. % Can take order, differnt types of scaling in h, or other parameters in Discr into - % account. + % account. opt is a struct that among other things may contain % method -- time stepping method for which to give a timestep. % cfl -- [optioanal] a cfl constant to use to calculate the timetep. % if skipped getTimestep should use a precomputed value. - k = getTimestep(obj, method, cfl) + % k -- timestep to use + k = getTimestep(obj, opt) % getTimeSnapshot returns a struct which represents the solution in ts at current time. % if ts is empty or 0 a representation of the initial conditions be returned.