Mercurial > repos > public > sbplib_julia
diff test/SbpOperators/volumeops/derivatives/dissipation_test.jl @ 1529:43aaf710463e refactor/equidistant_grid/signature
Change to signature of equidistant_grid to same style as many array methods.
See for example Array{T}(undef, dims...), zeros(T, dims...), fill(a, dims...) and more.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Thu, 11 Apr 2024 22:31:04 +0200 |
parents | 760a4a1ec4b7 |
children | 8e28cadfefb3 |
line wrap: on
line diff
--- a/test/SbpOperators/volumeops/derivatives/dissipation_test.jl Wed Apr 10 09:01:54 2024 +0200 +++ b/test/SbpOperators/volumeops/derivatives/dissipation_test.jl Thu Apr 11 22:31:04 2024 +0200 @@ -27,7 +27,7 @@ end @testset "undivided_skewed04" begin - g = equidistant_grid(20, 0., 11.) + g = equidistant_grid(0., 11., 20) D,Dᵀ = undivided_skewed04(g, 1) @test D isa LazyTensor{Float64,1,1} @@ -35,7 +35,7 @@ @testset "Accuracy conditions" begin N = 20 - g = equidistant_grid(N, 0//1,2//1) + g = equidistant_grid(0//1, 2//1, N) h = only(spacing(g)) @testset "D_$p" for p ∈ [1,2,3,4] D,Dᵀ = undivided_skewed04(g, p) @@ -67,7 +67,7 @@ return Dmat end - g = equidistant_grid(11, 0., 1.) + g = equidistant_grid(0., 1., 11) @testset "D_$p" for p ∈ [1,2,3,4] D,Dᵀ = undivided_skewed04(g, p) @@ -80,7 +80,7 @@ @testset "2D" begin N = 20 - g = equidistant_grid((N,2N), (0,0), (2,1)) + g = equidistant_grid((0,0), (2,1), N, 2N) h = spacing.(g.grids) D,Dᵀ = undivided_skewed04(g, 3, 2)