comparison src/SbpOperators/volumeops/derivatives/secondderivative.jl @ 619:332f65c1abf3 feature/volume_and_boundary_operators

Remove export of BoundaryOperator and VolumeOperator
author Vidar Stiernström <vidar.stiernstrom@it.uu.se>
date Mon, 07 Dec 2020 12:21:22 +0100
parents c64793f77509
children 914428a1fc61
comparison
equal deleted inserted replaced
618:c64793f77509 619:332f65c1abf3
1 function SecondDerivative(grid::EquidistantGrid{Dim}, inner_stencil, closure_stencils, direction) where Dim 1 function SecondDerivative(grid::EquidistantGrid{Dim}, inner_stencil, closure_stencils, direction) where Dim
2 h_inv = inverse_spacing(grid)[direction] 2 h_inv = inverse_spacing(grid)[direction]
3 return volume_operator(grid, scale(inner_stencil,h_inv^2), scale.(closure_stencils,h_inv^2), even, direction) 3 return SbpOperators.volume_operator(grid, scale(inner_stencil,h_inv^2), scale.(closure_stencils,h_inv^2), even, direction)
4 end 4 end
5 SecondDerivative(grid::EquidistantGrid{1}, inner_stencil, closure_stencils) = SecondDerivative(grid,inner_stencil,closure_stencils,1) 5 SecondDerivative(grid::EquidistantGrid{1}, inner_stencil, closure_stencils) = SecondDerivative(grid,inner_stencil,closure_stencils,1)
6 export SecondDerivative 6 export SecondDerivative