Mercurial > repos > public > sbplib_julia
comparison test/SbpOperators/volumeops/derivatives/first_derivative_test.jl @ 1153:f1bb1b6d85dd refactor/sbpoperators/inflation
Review: Suggest changes to test and removal of conveninece constructor
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Tue, 25 Oct 2022 10:33:27 +0200 |
parents | 157a78959e5d |
children | c94a12327737 |
comparison
equal
deleted
inserted
replaced
1151:56bc2c6a17fd | 1153:f1bb1b6d85dd |
---|---|
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 | 22 # Review: |
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. | |
23 @testset "first_derivative" begin | 25 @testset "first_derivative" begin |
24 @testset "Constructors" begin | 26 @testset "Constructors" begin |
25 stencil_set = read_stencil_set(sbp_operators_path()*"standard_diagonal.toml"; order=2) | 27 stencil_set = read_stencil_set(sbp_operators_path()*"standard_diagonal.toml"; order=2) |
26 | 28 |
27 g₁ = EquidistantGrid(11, 0., 1.) | 29 g₁ = EquidistantGrid(11, 0., 1.) |