Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/laplace/laplace.jl @ 1132:302d36b5ba8e feature/boundary_conditions
Merge feature/grids
| author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
|---|---|
| date | Fri, 15 Jul 2022 15:24:02 +0200 |
| parents | b4ee47f2aafb 6530fceef37c |
| children | a8c8517a310f |
comparison
equal
deleted
inserted
replaced
| 1112:b2afacd57635 | 1132:302d36b5ba8e |
|---|---|
| 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:dim(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 |
