comparison +sbp/D4Compatible.m @ 707:0de70ec8bf60 feature/quantumTriangles

merge with feature/optim
author Ylva Rydin <ylva.rydin@telia.com>
date Fri, 10 Nov 2017 14:22:56 +0100
parents e1d11b6a68d8
children
comparison
equal deleted inserted replaced
696:7c16b5af8d98 707:0de70ec8bf60
26 26
27 27
28 28
29 methods 29 methods
30 function obj = D4Compatible(m,lim,order) 30 function obj = D4Compatible(m,lim,order)
31 31
32 32
33 x_l = lim{1}; 33 x_l = lim{1};
34 x_r = lim{2}; 34 x_r = lim{2};
35 L = x_r-x_l; 35 L = x_r-x_l;
36 obj.h = L/(m-1); 36 obj.h = L/(m-1);
37 obj.x = linspace(x_l,x_r,m)'; 37 obj.x = linspace(x_l,x_r,m)';
66 obj.D2 = []; 66 obj.D2 = [];
67 obj.D3 = []; 67 obj.D3 = [];
68 68
69 69
70 end 70 end
71
72 function str = string(obj)
73 str = [class(obj) '_' num2str(obj.order)];
74 end
71 end 75 end
72 76
73 77
74 78
75 end 79 end