comparison +multiblock/GridTest.m @ 198:6fb354955c37 feature/grids

Paused work on boundaryGroups and getBoundaryNames. Are they really needed?
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 13 Jun 2016 16:49:11 +0200
parents 6054dcd3c8a9
children
comparison
equal deleted inserted replaced
192:3cedd5a596bb 198:6fb354955c37
9 function testMissing(testCase) 9 function testMissing(testCase)
10 testCase.verifyFail(); 10 testCase.verifyFail();
11 end 11 end
12 12
13 function testGetBoundaryNames(testCase) 13 function testGetBoundaryNames(testCase)
14 [grids, conn] = prepareAdjecentBlocks();
15
16 mbg = multiblock.Grid(grids, conn, multiblock.BoundaryGroup({1,'w'},{2,'w'}) );
17
14 testCase.verifyFail(); 18 testCase.verifyFail();
15 end 19 end
16 20
17 function testGetBoundary(testCase) 21 function testGetBoundary(testCase)
22 [grids, conn] = prepareAdjecentBlocks();
23
24 mbg = multiblock.Grid(grids, conn, multiblock.BoundaryGroup({1,'w'},{2,'w'}) );
18 testCase.verifyFail(); 25 testCase.verifyFail();
19 end 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