Mercurial > repos > public > sbplib_julia
changeset 1372:3f7f826489a1 feature/variable_derivatives
Remove type annotation for coeff
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 26 May 2023 21:45:51 +0200 |
parents | d0e48c2e6aad |
children | 85bd47f3ba48 |
files | src/SbpOperators/volumeops/derivatives/second_derivative_variable.jl |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/SbpOperators/volumeops/derivatives/second_derivative_variable.jl Fri May 26 21:44:33 2023 +0200 +++ b/src/SbpOperators/volumeops/derivatives/second_derivative_variable.jl Fri May 26 21:45:51 2023 +0200 @@ -9,18 +9,18 @@ """ function second_derivative_variable end -function second_derivative_variable(g::TensorGrid, coeff::AbstractArray, stencil_set, dir::Int) +function second_derivative_variable(g::TensorGrid, coeff, stencil_set, dir::Int) inner_stencil = parse_nested_stencil(eltype(coeff), stencil_set["D2variable"]["inner_stencil"]) closure_stencils = parse_nested_stencil.(eltype(coeff), stencil_set["D2variable"]["closure_stencils"]) return second_derivative_variable(g, coeff, inner_stencil, closure_stencils, dir) end -function second_derivative_variable(g::EquidistantGrid, coeff::AbstractArray, stencil_set) +function second_derivative_variable(g::EquidistantGrid, coeff, stencil_set) return second_derivative_variable(TensorGrid(g), coeff, stencil_set, 1) end -function second_derivative_variable(g::TensorGrid, coeff::AbstractArray, inner_stencil::NestedStencil, closure_stencils, dir) +function second_derivative_variable(g::TensorGrid, coeff, inner_stencil::NestedStencil, closure_stencils, dir) check_coefficient(g, coeff) Δxᵢ = spacing(g.grids[dir])