Mercurial > repos > public > sbplib
comparison +grid/boundaryOptimizedTest.m @ 1298:0ffb5bfa65e4 feature/boundary_optimized_grids
Improve comments
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 07 Jul 2020 16:23:44 +0200 |
parents | e53b1e25970a |
children |
comparison
equal
deleted
inserted
replaced
1297:e53b1e25970a | 1298:0ffb5bfa65e4 |
---|---|
48 end | 48 end |
49 | 49 |
50 % Tests that the expected grid points are obtained for a boundary optimized grid with a 4th order | 50 % Tests that the expected grid points are obtained for a boundary optimized grid with a 4th order |
51 % accurate stencil and 8th order minimal stencil. | 51 % accurate stencil and 8th order minimal stencil. |
52 % The boundary grid point distance weights are taken from the D1Nonequidistant operators and | 52 % The boundary grid point distance weights are taken from the D1Nonequidistant operators and |
53 % grid spacing is calculated according to Mattsson et al 2018. The test uses minimal number of grid | 53 % grid spacing is calculated according to Mattsson et al 2018. |
54 % points required by the operators. | |
55 function testCompiles(testCase) | 54 function testCompiles(testCase) |
56 | 55 |
57 %% 1D 4th order accurate stencil | 56 %% 1D 4th order accurate stencil |
58 % Boundary weights, number of non-equidistantly spaced points for 4th order accurate stencil | 57 % Boundary weights, number of non-equidistantly spaced points for 4th order accurate stencil |
59 bw = [0.0000000000000e+00 6.8764546205559e-01 1.8022115125776e+00]; | 58 bw = [0.0000000000000e+00 6.8764546205559e-01 1.8022115125776e+00]; |