Mercurial > repos > public > sbplib_julia
comparison test/testDiffOps.jl @ 338:2b0c9b30ea3b refactor/combine_to_one_package
Add test sets for each submodule to make the test output nicer
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 25 Sep 2020 13:48:23 +0200 |
parents | f4e3e71a4ff4 |
children | ffddaf053085 |
comparison
equal
deleted
inserted
replaced
337:d93099b1882e | 338:2b0c9b30ea3b |
---|---|
2 using Sbplib.DiffOps | 2 using Sbplib.DiffOps |
3 using Sbplib.Grids | 3 using Sbplib.Grids |
4 using Sbplib.SbpOperators | 4 using Sbplib.SbpOperators |
5 using Sbplib.RegionIndices | 5 using Sbplib.RegionIndices |
6 using Sbplib.LazyTensors | 6 using Sbplib.LazyTensors |
7 | |
8 @testset "DiffOps" begin | |
7 | 9 |
8 @testset "Laplace2D" begin | 10 @testset "Laplace2D" begin |
9 op = readOperator(sbp_operators_path()*"d2_4th.txt",sbp_operators_path()*"h_4th.txt") | 11 op = readOperator(sbp_operators_path()*"d2_4th.txt",sbp_operators_path()*"h_4th.txt") |
10 Lx = 3.5 | 12 Lx = 3.5 |
11 Ly = 7.2 | 13 Ly = 7.2 |
265 @test collect(H_w'*v_w) == collect(H_w'*v_w) | 267 @test collect(H_w'*v_w) == collect(H_w'*v_w) |
266 @test collect(H_e'*v_e) == collect(H_e'*v_e) | 268 @test collect(H_e'*v_e) == collect(H_e'*v_e) |
267 @test collect(H_s'*v_s) == collect(H_s'*v_s) | 269 @test collect(H_s'*v_s) == collect(H_s'*v_s) |
268 @test collect(H_n'*v_n) == collect(H_n'*v_n) | 270 @test collect(H_n'*v_n) == collect(H_n'*v_n) |
269 end | 271 end |
272 | |
273 end |