comparison +noname/Discretization.m @ 180:001239c03eb2 feature/beams

Merge with feature/grids.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 29 Feb 2016 15:08:01 +0100
parents 484b48e95c83
children
comparison
equal deleted inserted replaced
176:d095b5396103 180:001239c03eb2
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.