Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/derivatives/second_derivative.jl @ 952:6a8d7fbf55fc feature/laplace_opset
Review: Stencil set method for second_derivative?
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 14 Mar 2022 08:27:54 +0100 |
parents | 38d1752a9aff |
children | 2ae62dbaf839 |
comparison
equal
deleted
inserted
replaced
951:66e8faf4bb4b | 952:6a8d7fbf55fc |
---|---|
15 function second_derivative(grid::EquidistantGrid, inner_stencil, closure_stencils, direction) | 15 function second_derivative(grid::EquidistantGrid, inner_stencil, closure_stencils, direction) |
16 h_inv = inverse_spacing(grid)[direction] | 16 h_inv = inverse_spacing(grid)[direction] |
17 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) |
18 end | 18 end |
19 second_derivative(grid::EquidistantGrid{1}, inner_stencil, closure_stencils) = second_derivative(grid,inner_stencil,closure_stencils,1) | 19 second_derivative(grid::EquidistantGrid{1}, inner_stencil, closure_stencils) = second_derivative(grid,inner_stencil,closure_stencils,1) |
20 | |
21 # REVIEW: Stencil set method? |