Mercurial > repos > public > sbplib_julia
comparison src/SbpOperators/laplace/laplace.jl @ 616:d9324671b412 feature/volume_and_boundary_operators
Use julian naming conventions
author | Vidar Stiernström <vidar.stiernstrom@it.uu.se> |
---|---|
date | Mon, 07 Dec 2020 11:57:36 +0100 |
parents | e71f2f81b5f8 |
children |
comparison
equal
deleted
inserted
replaced
612:1db945cba3a2 | 616:d9324671b412 |
---|---|
3 # | 3 # |
4 # Implements the Laplace operator `L` in Dim dimensions as a tensor operator | 4 # Implements the Laplace operator `L` in Dim dimensions as a tensor operator |
5 # The multi-dimensional tensor operator consists of a tuple of 1D SecondDerivative | 5 # The multi-dimensional tensor operator consists of a tuple of 1D SecondDerivative |
6 # tensor operators. | 6 # tensor operators. |
7 # """ | 7 # """ |
8 function Laplace(grid::EquidistantGrid{Dim}, innerStencil, closureStencils) where Dim | 8 function Laplace(grid::EquidistantGrid{Dim}, inner_stencil, closure_stencils) where Dim |
9 Δ = SecondDerivative(grid, innerStencil, closureStencils, 1) | 9 Δ = SecondDerivative(grid, inner_stencil, closure_stencils, 1) |
10 for d = 2:Dim | 10 for d = 2:Dim |
11 Δ += SecondDerivative(grid, innerStencil, closureStencils, d) | 11 Δ += SecondDerivative(grid, inner_stencil, closure_stencils, d) |
12 end | 12 end |
13 return Δ | 13 return Δ |
14 end | 14 end |
15 export Laplace | 15 export Laplace |
16 | 16 |