Mercurial > repos > public > sbplib
comparison +multiblock/GridTest.m @ 427:a613960a157b feature/quantumTriangles
merged with feature/beams
author | Ylva Rydin <ylva.rydin@telia.com> |
---|---|
date | Thu, 26 Jan 2017 15:59:25 +0100 |
parents | 6fb354955c37 |
children |
comparison
equal
deleted
inserted
replaced
426:29944ea7674b | 427:a613960a157b |
---|---|
1 function tests = GridTest() | |
2 tests = functiontests(localfunctions); | |
3 end | |
4 | |
5 function testCreation(testCase) | |
6 g = multiblock.Grid({},{}); | |
7 end | |
8 | |
9 function testMissing(testCase) | |
10 testCase.verifyFail(); | |
11 end | |
12 | |
13 function testGetBoundaryNames(testCase) | |
14 [grids, conn] = prepareAdjecentBlocks(); | |
15 | |
16 mbg = multiblock.Grid(grids, conn, multiblock.BoundaryGroup({1,'w'},{2,'w'}) ); | |
17 | |
18 testCase.verifyFail(); | |
19 end | |
20 | |
21 function testGetBoundary(testCase) | |
22 [grids, conn] = prepareAdjecentBlocks(); | |
23 | |
24 mbg = multiblock.Grid(grids, conn, multiblock.BoundaryGroup({1,'w'},{2,'w'}) ); | |
25 testCase.verifyFail(); | |
26 end | |
27 | |
28 | |
29 function [grids, conn] = prepareAdjecentBlocks() | |
30 grids = { | |
31 grid.Cartesian([0 1 2], [3 4 5]); | |
32 grid.Cartesian([1 2], [10 20]); | |
33 }; | |
34 | |
35 conn = cell(2,2); | |
36 conn{1, 2} = {'s','n'}; | |
37 end |