Mercurial > repos > public > sbplib
comparison +sbp/D4Standard.m @ 886:8894e9c49e40 feature/timesteppers
Merge with default for latest changes
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Thu, 15 Nov 2018 16:36:21 -0800 |
parents | e1d11b6a68d8 |
children |
comparison
equal
deleted
inserted
replaced
816:b5e5b195da1e | 886:8894e9c49e40 |
---|---|
26 | 26 |
27 | 27 |
28 | 28 |
29 methods | 29 methods |
30 function obj = D4Standard(m,lim,order) | 30 function obj = D4Standard(m,lim,order) |
31 | 31 |
32 x_l = lim{1}; | 32 x_l = lim{1}; |
33 x_r = lim{2}; | 33 x_r = lim{2}; |
34 L = x_r-x_l; | 34 L = x_r-x_l; |
35 obj.h = L/(m-1); | 35 obj.h = L/(m-1); |
36 obj.x = linspace(x_l,x_r,m)'; | 36 obj.x = linspace(x_l,x_r,m)'; |
54 end | 54 end |
55 | 55 |
56 obj.m = m; | 56 obj.m = m; |
57 | 57 |
58 end | 58 end |
59 | |
60 function str = string(obj) | |
61 str = [class(obj) '_' num2str(obj.order)]; | |
62 end | |
59 end | 63 end |
60 | 64 |
61 | 65 |
62 end | 66 end |