comparison +multiblock/GridTest.m @ 832:5573913a0949 feature/burgers1d

Merged with default, and updated +scheme/Burgers1D accordingly
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Tue, 11 Sep 2018 15:58:35 +0200
parents 6fb354955c37
children
comparison
equal deleted inserted replaced
831:d0934d1143b7 832:5573913a0949
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