comparison src/SbpOperators/volumeops/derivatives/second_derivative_variable.jl @ 937:025a506ca2fa feature/variable_derivatives

Fix dispatch bug for 1D grids
author Jonatan Werpers <jonatan@werpers.com>
date Wed, 02 Mar 2022 10:54:39 +0100
parents 863287577ad4
children b15f39ae1643
comparison
equal deleted inserted replaced
932:863287577ad4 937:025a506ca2fa
25 scaled_inner_stencil = scale(inner_stencil, 1/Δxᵢ^2) 25 scaled_inner_stencil = scale(inner_stencil, 1/Δxᵢ^2)
26 scaled_closure_stencils = scale.(Tuple(closure_stencils), 1/Δxᵢ^2) 26 scaled_closure_stencils = scale.(Tuple(closure_stencils), 1/Δxᵢ^2)
27 return SecondDerivativeVariable{dir, dimension(grid)}(scaled_inner_stencil, scaled_closure_stencils, size(grid), coeff) 27 return SecondDerivativeVariable{dir, dimension(grid)}(scaled_inner_stencil, scaled_closure_stencils, size(grid), coeff)
28 end 28 end
29 29
30 function SecondDerivativeVariable(grid::EquidistantGrid{1}, coeff::AbstractVector, inner_stencil, closure_stencils) 30 function SecondDerivativeVariable(grid::EquidistantGrid{1}, coeff::AbstractVector, inner_stencil::NestedStencil, closure_stencils)
31 return SecondDerivativeVariable(grid, coeff, inner_stencil, closure_stencils, 1) 31 return SecondDerivativeVariable(grid, coeff, inner_stencil, closure_stencils, 1)
32 end 32 end
33 33
34 @doc raw""" 34 @doc raw"""
35 SecondDerivativeVariable(grid::EquidistantGrid, coeff::AbstractArray, stencil_set, dir) 35 SecondDerivativeVariable(grid::EquidistantGrid, coeff::AbstractArray, stencil_set, dir)