Mercurial > repos > public > sbplib_julia
diff test/SbpOperators/readoperator_test.jl @ 895:d24b331547f3 feature/variable_derivatives
Add method for controlling the element type when parsing nested stencils
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 10 Feb 2022 11:08:39 +0100 |
parents | 06c510d40ebb |
children |
line wrap: on
line diff
--- a/test/SbpOperators/readoperator_test.jl Thu Feb 10 10:57:00 2022 +0100 +++ b/test/SbpOperators/readoperator_test.jl Thu Feb 10 11:08:39 2022 +0100 @@ -182,4 +182,7 @@ @test parse_nested_stencil(toml["s1"]) == CenteredNestedStencil((1//2, 1//2, 0//1),( -1//2, -1//1, -1//2),(0//1, 1//2, 1//2)) @test parse_nested_stencil(toml["s2"]) == NestedStencil((2//1, -1//1, 0//1),( -3//1, 1//1, 0//1),(1//1, 0//1, 0//1), center = 1) @test parse_nested_stencil(toml["s3"]) == NestedStencil((2//1, -1//1, 0//1),( -3//1, 1//1, 0//1),(1//1, 0//1, 0//1), center = 2) + + @test parse_nested_stencil(Float64, toml["s1"]) == CenteredNestedStencil((1/2, 1/2, 0.),( -1/2, -1., -1/2),(0., 1/2, 1/2)) + @test parse_nested_stencil(Int, toml["s2"]) == NestedStencil((2, -1, 0),( -3, 1, 0),(1, 0, 0), center = 1) end