comparison +sbp/BlockNorm.m @ 29:32b39dc44474

Removed repository inside +sbp to make it part of the root repo.
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 28 Sep 2015 08:47:28 +0200
parents
children
comparison
equal deleted inserted replaced
28:16acb2775aca 29:32b39dc44474
1 classdef BlockNorm < sbp.OpSet
2 properties
3 norms % Struct containing norm matrices such as H,Q, M
4 boundary % Struct contanging vectors for boundry point approximations
5 derivatives % Struct containging differentiation operators
6 borrowing % Struct with borrowing limits for different norm matrices
7 m % Number of grid points.
8 h % Step size
9 end
10
11
12
13 methods
14 function obj = BlockNorm(m,h,order)
15
16 if order == 4
17 [H, HI, D1, D2, e_1, e_m, M,Q S_1, S_m] = sbp.blocknorm4(m,h);
18 elseif order == 6
19 [H, HI, D1, D2, e_1, e_m, M,Q S_1, S_m] = sbp.blocknorm6(m,h);
20 elseif order == 8
21 [H, HI, D1, D2, e_1, e_m, M,Q S_1, S_m] = sbp.blocknorm8(m,h);
22 elseif order == 10
23 [H, HI, D1, D2, e_1, e_m, M,Q S_1, S_m] = sbp.blocknorm10(m,h);
24 else
25 error('Invalid operator order %d.',order);
26 end
27
28 obj.h = h;
29 obj.m = m;
30
31 obj.norms.H = H;
32 obj.norms.HI = HI;
33 obj.norms.Q = Q;
34 obj.norms.M = M;
35
36 obj.boundary.e_1 = e_1;
37 obj.boundary.S_1 = S_1;
38
39 obj.boundary.e_m = e_m;
40 obj.boundary.S_m = S_m;
41
42 obj.derivatives.D1 = D1;
43 obj.derivatives.D2 = D2;
44 end
45 end
46
47 methods (Static)
48 function lambda = smallestGrid(obj)
49 error('Not implmented')
50 end
51 end
52
53
54
55 end