comparison src/SbpOperators/volumeops/derivatives/second_derivative.jl @ 947:38d1752a9aff feature/laplace_opset

Reformat "See also:"
author Jonatan Werpers <jonatan@werpers.com>
date Sun, 13 Mar 2022 21:01:09 +0100
parents 22c80fb36400
children 6a8d7fbf55fc
comparison
equal deleted inserted replaced
936:22c80fb36400 947:38d1752a9aff
7 `direction`, using the stencil `inner_stencil` in the interior and a set of stencils `closure_stencils` 7 `direction`, using the stencil `inner_stencil` in the interior and a set of stencils `closure_stencils`
8 for the points in the closure regions. 8 for the points in the closure regions.
9 9
10 On a one-dimensional `grid`, `D2` is a `VolumeOperator`. On a multi-dimensional `grid`, `D2` is the outer product of the 10 On a one-dimensional `grid`, `D2` is a `VolumeOperator`. On a multi-dimensional `grid`, `D2` is the outer product of the
11 one-dimensional operator with the `IdentityMapping`s in orthogonal coordinate dirrections. 11 one-dimensional operator with the `IdentityMapping`s in orthogonal coordinate dirrections.
12 See also [`volume_operator`](@ref). 12
13 See also: [`volume_operator`](@ref).
13 """ 14 """
14 function second_derivative(grid::EquidistantGrid, inner_stencil, closure_stencils, direction) 15 function second_derivative(grid::EquidistantGrid, inner_stencil, closure_stencils, direction)
15 h_inv = inverse_spacing(grid)[direction] 16 h_inv = inverse_spacing(grid)[direction]
16 return SbpOperators.volume_operator(grid, scale(inner_stencil,h_inv^2), scale.(closure_stencils,h_inv^2), even, direction) 17 return SbpOperators.volume_operator(grid, scale(inner_stencil,h_inv^2), scale.(closure_stencils,h_inv^2), even, direction)
17 end 18 end