Mercurial > repos > public > sbplib
comparison +time/SBPInTimeSecondOrderForm.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 | b5e5b195da1e |
children | 47e86b5270ad |
comparison
equal
deleted
inserted
replaced
888:8732d6bd9890 | 889:f5e14e5986b5 |
---|---|
56 w = obj.firstOrderTimeStepper.getV(); | 56 w = obj.firstOrderTimeStepper.getV(); |
57 vt = w(end/2+1:end); | 57 vt = w(end/2+1:end); |
58 t = obj.t; | 58 t = obj.t; |
59 end | 59 end |
60 | 60 |
61 function state = getState(obj) | |
62 [v, t] = obj.getV(); | |
63 [vt] = obj.getVt(); | |
64 state = struct('v', v, 'vt', vt, 't', t, 'k', obj.k); | |
65 end | |
66 | |
67 function obj = step(obj) | 61 function obj = step(obj) |
68 obj.firstOrderTimeStepper.step(); | 62 obj.firstOrderTimeStepper.step(); |
69 obj.t = obj.firstOrderTimeStepper.t; | 63 obj.t = obj.firstOrderTimeStepper.t; |
70 obj.n = obj.firstOrderTimeStepper.n; | 64 obj.n = obj.firstOrderTimeStepper.n; |
71 end | 65 end |