Mercurial > repos > public > sbplib
comparison +grid/CurvilinearTest.m @ 173:f7bb2a94d291 feature/grids
Added functionallity for storing grid scaling on structured grids.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 26 Feb 2016 16:06:03 +0100 |
parents | 62b5f3c34bcb |
children | c5ca9bbfed41 |
comparison
equal
deleted
inserted
replaced
172:c3483685116a | 173:f7bb2a94d291 |
---|---|
67 end | 67 end |
68 | 68 |
69 function testMappingInputError(testCase) | 69 function testMappingInputError(testCase) |
70 testCase.assumeFail(); | 70 testCase.assumeFail(); |
71 end | 71 end |
72 | |
73 function testScaling(testCase) | |
74 in = {{1:2, 1:3}, {[1 2 3 4 5 6]', [7 8 9 10 11 12]'}}; | |
75 g = grid.Curvilinear(in{2},in{1}{:}); | |
76 | |
77 testCase.verifyError(@()g.scaling(),'grid:Curvilinear:NoScalingSet'); | |
78 | |
79 g.logicalGrid.h = [2 1]; | |
80 testCase.verifyEqual(g.scaling(),[2 1]); | |
81 end | |
82 |