comparison src/SbpOperators/volumeops/derivatives/second_derivative_variable.jl @ 2090:67d8fbbb9e58 refactor/sbp_operators/direction_check

Update error messages
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 02 Mar 2026 14:21:58 +0100
parents 1bc63fa55145
children e21c295fb2da
comparison
equal deleted inserted replaced
2089:1bc63fa55145 2090:67d8fbbb9e58
9 """ 9 """
10 function second_derivative_variable end 10 function second_derivative_variable end
11 11
12 function second_derivative_variable(g::TensorGrid, coeff, stencil_set, dim::Int) 12 function second_derivative_variable(g::TensorGrid, coeff, stencil_set, dim::Int)
13 if dim ∉ 1:ndims(g) 13 if dim ∉ 1:ndims(g)
14 throw(DomainError(dim, "Direction must be inside [0, $(ndims(g))].")) 14 throw(DomainError(dim, "Derivative direction must be in 1:$(ndims(g))."))
15 end 15 end
16 inner_stencil = parse_nested_stencil(eltype(coeff), stencil_set["D2variable"]["inner_stencil"]) 16 inner_stencil = parse_nested_stencil(eltype(coeff), stencil_set["D2variable"]["inner_stencil"])
17 closure_stencils = parse_nested_stencil.(eltype(coeff), stencil_set["D2variable"]["closure_stencils"]) 17 closure_stencils = parse_nested_stencil.(eltype(coeff), stencil_set["D2variable"]["closure_stencils"])
18 18
19 return second_derivative_variable(g, coeff, inner_stencil, closure_stencils, dim) 19 return second_derivative_variable(g, coeff, inner_stencil, closure_stencils, dim)