comparison test/SbpOperators/volumeops/derivatives/first_derivative_test.jl @ 1158:c94a12327737 refactor/sbpoperators/inflation

Disregard review comments about multi-d tests. After discussion on Discord we concluded that removing multi-d tests for volume operators would make them too implementation dependent.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 29 Nov 2022 21:46:54 +0100
parents f1bb1b6d85dd
children 7d52c4835d15
comparison
equal deleted inserted replaced
1157:03c217c50d7c 1158:c94a12327737
17 if k < 0 17 if k < 0
18 return zero(x) 18 return zero(x)
19 end 19 end
20 x^k/factorial(k) 20 x^k/factorial(k)
21 end 21 end
22 # Review: 22
23 # If we test LazyTensor.inflation for e.g 1D-3D general tensors then we should only need to test
24 # the 1D first derivative.
25 @testset "first_derivative" begin 23 @testset "first_derivative" begin
26 @testset "Constructors" begin 24 @testset "Constructors" begin
27 stencil_set = read_stencil_set(sbp_operators_path()*"standard_diagonal.toml"; order=2) 25 stencil_set = read_stencil_set(sbp_operators_path()*"standard_diagonal.toml"; order=2)
28 26
29 g₁ = EquidistantGrid(11, 0., 1.) 27 g₁ = EquidistantGrid(11, 0., 1.)