Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/laplace/laplace.jl @ 1133:a8c8517a310f feature/boundary_conditions
Merge with default
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Wed, 05 Oct 2022 22:05:23 +0200 |
parents | 302d36b5ba8e dfbd62c7eb09 |
children | 470a70a6c1e6 |
comparison
equal
deleted
inserted
replaced
1132:302d36b5ba8e | 1133:a8c8517a310f |
---|---|
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:dim(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 |
56 | 56 |