Mercurial > repos > public > sbplib
comparison +multiblock/GridTest.m @ 820:501750fbbfdb
Merge with feature/grids
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 07 Sep 2018 14:40:58 +0200 |
parents | 6fb354955c37 |
children |
comparison
equal
deleted
inserted
replaced
819:fdf0ef9150f4 | 820:501750fbbfdb |
---|---|
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 |