Mercurial > repos > public > sbplib_julia
comparison test/testSbpOperators.jl @ 679:54ce3f9771e5 feature/laplace_opset
Add inferred tests to standard constructor
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Sat, 06 Feb 2021 15:26:14 +0100 |
parents | 730565f7cc2e |
children | 3cd582257072 |
comparison
equal
deleted
inserted
replaced
678:730565f7cc2e | 679:54ce3f9771e5 |
---|---|
365 @test L.e == e_dict | 365 @test L.e == e_dict |
366 @test L.d == d_dict | 366 @test L.d == d_dict |
367 @test L.H_boundary == Hb_dict | 367 @test L.H_boundary == Hb_dict |
368 | 368 |
369 @test L isa TensorMapping{T,1,1} where T | 369 @test L isa TensorMapping{T,1,1} where T |
370 @inferred Laplace(Δ,H,Hi,e_dict,d_dict,Hb_dict) | |
370 end | 371 end |
371 @testset "3D" begin | 372 @testset "3D" begin |
372 # Create all tensor mappings included in Laplace | 373 # Create all tensor mappings included in Laplace |
373 Δ = laplace(g_3D, op.innerStencil, op.closureStencils) | 374 Δ = laplace(g_3D, op.innerStencil, op.closureStencils) |
374 H = quadrature(g_3D, op.quadratureClosure) | 375 H = quadrature(g_3D, op.quadratureClosure) |
415 @test L.H_inv == Hi | 416 @test L.H_inv == Hi |
416 @test L.e == e_dict | 417 @test L.e == e_dict |
417 @test L.d == d_dict | 418 @test L.d == d_dict |
418 @test L.H_boundary == Hb_dict | 419 @test L.H_boundary == Hb_dict |
419 @test L isa TensorMapping{T,3,3} where T | 420 @test L isa TensorMapping{T,3,3} where T |
421 @inferred Laplace(Δ,H,Hi,e_dict,d_dict,Hb_dict) | |
420 end | 422 end |
421 end | 423 end |
422 | 424 |
423 @testset "laplace" begin | 425 @testset "laplace" begin |
424 op = read_D2_operator(sbp_operators_path()*"standard_diagonal.toml"; order=4) | 426 op = read_D2_operator(sbp_operators_path()*"standard_diagonal.toml"; order=4) |