comparison +time/Timestepper.m @ 889:f5e14e5986b5 feature/timesteppers

Remove getState from TimeStepper and derived classes - Currently no need for that functionality. Remove it.
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Thu, 15 Nov 2018 17:29:30 -0800
parents 8894e9c49e40
children a99f00896b8e
comparison
equal deleted inserted replaced
888:8732d6bd9890 889:f5e14e5986b5
1 classdef Timestepper < handle 1 classdef Timestepper < handle
2 properties (Abstract) 2 properties (Abstract)
3 t 3 t
4 k 4 k
5 n 5 n
6 % TBD: Decide on accessibility of properties.
7 % Properties that are not intended to be modified from the outside
8 % should ideally be made private and the specialized classes should be extended with
9 % getter functions for their relevant members, e.g v, t, k, etc.
10 end 6 end
11 7
12 methods (Abstract) 8 methods (Abstract)
13 % Returns the solution vector v at timestep t. 9 % Returns the solution vector v at timestep t.
14 % TBD: Replace with getters for the separate members if the above suggestion is implemented?
15 [v,t] = getV(obj) 10 [v,t] = getV(obj)
16 % Returns struct holding relevant state properties for the specialized timestepper.
17 % E.g [v, t, k].
18 state = getState(obj)
19 obj = step(obj) 11 obj = step(obj)
20 end 12 end
21 13
22 14
23 methods 15 methods