Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/volumeops/laplace/laplace.jl @ 1115:6530fceef37c feature/grids
Rename dimension to dim
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Fri, 15 Jul 2022 09:41:58 +0200 |
parents | 7fc8df5157a7 |
children | dfbd62c7eb09 302d36b5ba8e |
comparison
equal
deleted
inserted
replaced
1114:fc57804c9bf4 | 1115:6530fceef37c |
---|---|
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 |