Mercurial > repos > public > sbplib
comparison +time/Rungekutta.m @ 986:a32856fc2ad2 feature/timesteppers
Rename butcherTableau() to butcherTableauFromStr() in preparation of butcher tableau class
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 08 Jan 2019 13:28:41 +0100 |
parents | 0585a2ee7ee7 |
children |
comparison
equal
deleted
inserted
replaced
985:ad6de007e7f6 | 986:a32856fc2ad2 |
---|---|
24 obj.v = v0; | 24 obj.v = v0; |
25 obj.n = 0; | 25 obj.n = 0; |
26 | 26 |
27 % Extract the coefficients for the specified method | 27 % Extract the coefficients for the specified method |
28 % used for the RK updates from the Butcher tableua. | 28 % used for the RK updates from the Butcher tableua. |
29 [s,a,b,c] = time.rk.butcherTableau(method); | 29 [s,a,b,c] = time.rk.butcherTableauFromStr(method); |
30 obj.coeffs = struct('s',s,'a',a,'b',b,'c',c); | 30 obj.coeffs = struct('s',s,'a',a,'b',b,'c',c); |
31 | 31 |
32 if isempty(discreteData) | 32 if isempty(discreteData) |
33 obj.scheme = @(v,t,n) time.rk.rungekutta(v, t, dt, F, obj.coeffs); | 33 obj.scheme = @(v,t,n) time.rk.rungekutta(v, t, dt, F, obj.coeffs); |
34 else | 34 else |