comparison +noname/Discretization.m @ 142:484b48e95c83

Removed ylim from setup1dPlot added some comments and fixed timestepper paramters.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 29 Feb 2016 15:00:52 +0100
parents ceba6be0389f
children
comparison
equal deleted inserted replaced
141:cb2b12246b7e 142:484b48e95c83
17 % method is a string that states which timestepping method should be used. 17 % method is a string that states which timestepping method should be used.
18 % The implementation should switch on the string and deliver 18 % The implementation should switch on the string and deliver
19 % the appropriate timestepper. It should also provide a default value. 19 % the appropriate timestepper. It should also provide a default value.
20 % k is a desired timestep 20 % k is a desired timestep
21 % cfl is a choses cfl constant used to set the timestep. ignored if k is set. 21 % cfl is a choses cfl constant used to set the timestep. ignored if k is set.
22 ts = getTimestepper(obj, method, k, cfl) 22 ts = getTimestepper(obj, opt)
23 23
24 % Calculates a timestep for the discretization and a given timestepping method. 24 % Calculates a timestep for the discretization and a given timestepping method.
25 % Can take order, differnt types of scaling in h, or other parameters in Discr into 25 % Can take order, differnt types of scaling in h, or other parameters in Discr into
26 % account. opt is a struct that among other things may contain 26 % account. opt is a struct that among other things may contain
27 % method -- time stepping method for which to give a timestep. 27 % method -- time stepping method for which to give a timestep.