comparison test/SbpOperators/volumeops/derivatives/second_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 7fc8df5157a7
children c94a12327737
comparison
equal deleted inserted replaced
1151:56bc2c6a17fd 1153:f1bb1b6d85dd
4 using Sbplib.Grids 4 using Sbplib.Grids
5 using Sbplib.LazyTensors 5 using Sbplib.LazyTensors
6 6
7 import Sbplib.SbpOperators.VolumeOperator 7 import Sbplib.SbpOperators.VolumeOperator
8 8
9 # Review:
10 # If we test LazyTensor.inflation for e.g 1D-3D general tensors then we should only need to test
11 # the 1D second derivative.
9 @testset "SecondDerivative" begin 12 @testset "SecondDerivative" begin
10 operator_path = sbp_operators_path()*"standard_diagonal.toml" 13 operator_path = sbp_operators_path()*"standard_diagonal.toml"
11 stencil_set = read_stencil_set(operator_path; order=4) 14 stencil_set = read_stencil_set(operator_path; order=4)
12 inner_stencil = parse_stencil(stencil_set["D2"]["inner_stencil"]) 15 inner_stencil = parse_stencil(stencil_set["D2"]["inner_stencil"])
13 closure_stencils = parse_stencil.(stencil_set["D2"]["closure_stencils"]) 16 closure_stencils = parse_stencil.(stencil_set["D2"]["closure_stencils"])