Mercurial > repos > public > sbplib
comparison operator_def/assemble_opTest.m @ 828:f82da6644f42 feature/operator_files
Fixed bug in tests
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Mon, 10 Sep 2018 19:17:41 +0200 |
parents | d1e5143d67ed |
children | e15a667ffde2 |
comparison
equal
deleted
inserted
replaced
827:d1e5143d67ed | 828:f82da6644f42 |
---|---|
8 op = sbp.D2Standard(m,{0 1},4); | 8 op = sbp.D2Standard(m,{0 1},4); |
9 h = op.h; | 9 h = op.h; |
10 | 10 |
11 boundary_block = op.D1(1:4,1:6)*h; | 11 boundary_block = op.D1(1:4,1:6)*h; |
12 inner = op.D1(5,3:7)*h; | 12 inner = op.D1(5,3:7)*h; |
13 D1_new = assemble_op(inner,boundary_block,m)/h; | 13 D1_new = assemble_op(inner,boundary_block,m,-1)/h; |
14 | 14 |
15 verifyEqual(testCase,D1_new,op.D1,'AbsTol',1e-10) | 15 verifyEqual(testCase,D1_new,op.D1,'AbsTol',1e-10) |
16 | 16 |
17 end | 17 end |
18 | 18 |