comparison +multiblock/GridTest.m @ 886:8894e9c49e40 feature/timesteppers

Merge with default for latest changes
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Thu, 15 Nov 2018 16:36:21 -0800
parents 6fb354955c37
children
comparison
equal deleted inserted replaced
816:b5e5b195da1e 886:8894e9c49e40
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