Mercurial > repos > public > sbplib
comparison operator_def/assemble_opTest.m @ 821:95c26000c0ba feature/operator_files
Add files for parsing operator data stencil file
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Mon, 10 Sep 2018 16:57:17 +0200 |
parents | |
children | 32c360bb480e |
comparison
equal
deleted
inserted
replaced
820:501750fbbfdb | 821:95c26000c0ba |
---|---|
1 | |
2 function tests = assemble_opTest() | |
3 tests = functiontests(localfunctions); | |
4 end | |
5 | |
6 function TestAssembleD1(testCase) | |
7 m = 10; | |
8 op = sbp.D2Standard(m,{0 1},4); | |
9 h = op.h; | |
10 | |
11 boundary_block = op.D1(1:4,1:6)*h; | |
12 inner = op.D1(5,3:7)*h; | |
13 | |
14 D1_new = assemble_op(inner,boundary_block,h,m); | |
15 | |
16 verifyEqual(testCase,D1_new,op.D1,'AbsTol',1e-10) | |
17 | |
18 end | |
19 | |
20 | |
21 | |
22 | |
23 | |
24 |