Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/laplace/laplace.jl @ 1888:eb70a0941cd6 allocation_testing
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Fri, 03 Feb 2023 23:02:46 +0100 |
parents | dfbd62c7eb09 |
children | a8c8517a310f 356ec6a72974 |
comparison
equal
deleted
inserted
replaced
1887:24590890e124 | 1888:eb70a0941cd6 |
---|---|
46 | 46 |
47 See also: [`second_derivative`](@ref). | 47 See also: [`second_derivative`](@ref). |
48 """ | 48 """ |
49 function laplace(grid::EquidistantGrid, inner_stencil, closure_stencils) | 49 function laplace(grid::EquidistantGrid, inner_stencil, closure_stencils) |
50 Δ = second_derivative(grid, inner_stencil, closure_stencils, 1) | 50 Δ = second_derivative(grid, inner_stencil, closure_stencils, 1) |
51 for d = 2:dimension(grid) | 51 for d = 2:ndims(grid) |
52 Δ += second_derivative(grid, inner_stencil, closure_stencils, d) | 52 Δ += second_derivative(grid, inner_stencil, closure_stencils, d) |
53 end | 53 end |
54 return Δ | 54 return Δ |
55 end | 55 end |