Mercurial > repos > public > sbplib_julia
comparison test/testSbpOperators.jl @ 514:14e722e8607d feature/boundary_ops
Clean up constructors
| author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
|---|---|
| date | Mon, 23 Nov 2020 21:19:08 +0100 |
| parents | 547639572208 |
| children | d55008f5e2f3 |
comparison
equal
deleted
inserted
replaced
| 513:547639572208 | 514:14e722e8607d |
|---|---|
| 190 @test e_l'*u == [u[1], 0, 0, 0] | 190 @test e_l'*u == [u[1], 0, 0, 0] |
| 191 @test e_r'*u == [0, 0, 0, u[1]] | 191 @test e_r'*u == [0, 0, 0, u[1]] |
| 192 @test_throws BoundsError (e_l*v)[Index{Lower}(3)] | 192 @test_throws BoundsError (e_l*v)[Index{Lower}(3)] |
| 193 @test_throws BoundsError (e_r*v)[Index{Upper}(3)] | 193 @test_throws BoundsError (e_r*v)[Index{Upper}(3)] |
| 194 | 194 |
| 195 | |
| 196 | |
| 197 | |
| 198 | |
| 199 g = EquidistantGrid((4,5), (0.0, 0.0), (1.0,1.0)) | 195 g = EquidistantGrid((4,5), (0.0, 0.0), (1.0,1.0)) |
| 200 | 196 |
| 201 e_w = boundary_restriction(g, op.eClosure, CartesianBoundary{1,Lower}()) | 197 e_w = boundary_restriction(g, op.eClosure, CartesianBoundary{1,Lower}()) |
| 202 e_e = boundary_restriction(g, op.eClosure, CartesianBoundary{1,Upper}()) | 198 e_e = boundary_restriction(g, op.eClosure, CartesianBoundary{1,Upper}()) |
| 203 e_s = boundary_restriction(g, op.eClosure, CartesianBoundary{2,Lower}()) | 199 e_s = boundary_restriction(g, op.eClosure, CartesianBoundary{2,Lower}()) |
