comparison +sbp/D4Standard.m @ 832:5573913a0949 feature/burgers1d

Merged with default, and updated +scheme/Burgers1D accordingly
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Tue, 11 Sep 2018 15:58:35 +0200
parents e1d11b6a68d8
children
comparison
equal deleted inserted replaced
831:d0934d1143b7 832:5573913a0949
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